vfs: prevent remount read-only if pending removes
authorMiklos Szeredi <mszeredi@suse.cz>
Mon, 21 Nov 2011 11:11:33 +0000 (12:11 +0100)
committerAl Viro <viro@zeniv.linux.org.uk>
Sat, 7 Jan 2012 04:20:13 +0000 (23:20 -0500)
commit8e8b87964bc8dc5c14b6543fc933b7725f07d3ac
tree9a14c135741f3a8ba960ff97f060a58597604a6d
parent7ada4db88634429f4da690ad1c4eb73c93085f0c
vfs: prevent remount read-only if pending removes

If there are any inodes on the super block that have been unlinked
(i_nlink == 0) but have not yet been deleted then prevent the
remounting the super block read-only.

Reported-by: Toshiyuki Okajima <toshi.okajima@jp.fujitsu.com>
Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Tested-by: Toshiyuki Okajima <toshi.okajima@jp.fujitsu.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/file_table.c
fs/namespace.c
fs/super.c
include/linux/fs.h