[PATCH] r/o bind mounts: monitor zeroing of i_nlink
authorDave Hansen <haveblue@us.ibm.com>
Sun, 1 Oct 2006 06:29:06 +0000 (23:29 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sun, 1 Oct 2006 07:39:30 +0000 (00:39 -0700)
commitce71ec36840368b877fb63bd14c8e67ab62d08b1
tree55ea3caaa339881dfd66d787b3dbbb964825d07a
parent17ff785691503f63ec648df82a7fdaece7695561
[PATCH] r/o bind mounts: monitor zeroing of i_nlink

Some filesystems, instead of simply decrementing i_nlink, simply zero it
during an unlink operation.  We need to catch these in addition to the
decrement operations.

Signed-off-by: Dave Hansen <haveblue@us.ibm.com>
Acked-by: Christoph Hellwig <hch@lst.de>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
15 files changed:
fs/autofs4/root.c
fs/cifs/inode.c
fs/ext3/namei.c
fs/fuse/dir.c
fs/hfs/dir.c
fs/hfsplus/dir.c
fs/hpfs/namei.c
fs/jfs/namei.c
fs/msdos/namei.c
fs/nfs/dir.c
fs/qnx4/namei.c
fs/reiserfs/namei.c
fs/udf/namei.c
fs/vfat/namei.c
include/linux/fs.h