vfs: protect i_nlink
authorMiklos Szeredi <mszeredi@suse.cz>
Fri, 28 Oct 2011 12:13:30 +0000 (14:13 +0200)
committerChristoph Hellwig <hch@serles.lst.de>
Wed, 2 Nov 2011 11:53:43 +0000 (12:53 +0100)
commita78ef704a8dd430225955f0709b22d4a6ba21deb
treeebd8f8a5a257077912b7cc38ecfdab43e1d7d73d
parentbfe8684869601dacfcb2cd69ef8cfd9045f62170
vfs: protect i_nlink

Prevent direct modification of i_nlink by making it const and adding a
non-const __i_nlink alias.

Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Tested-by: Toshiyuki Okajima <toshi.okajima@jp.fujitsu.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
fs/inode.c
include/linux/fs.h