]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[PATCH] r/o bind mounts: unlink: monitor i_nlink
authorDave Hansen <haveblue@us.ibm.com>
Sun, 1 Oct 2006 06:29:03 +0000 (23:29 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sun, 1 Oct 2006 07:39:30 +0000 (00:39 -0700)
commit9a53c3a783c2fa9b969628e65695c11c3e51e673
tree5a6115e18ee105246d46e3db3d5b07749d232f5b
parentaab520e2f6c80160cabd187a8d0292d1cec8ff68
[PATCH] r/o bind mounts: unlink: monitor i_nlink

When a filesystem decrements i_nlink to zero, it means that a write must be
performed in order to drop the inode from the filesystem.

We're shortly going to have keep filesystems from being remounted r/o between
the time that this i_nlink decrement and that write occurs.

So, add a little helper function to do the decrements.  We'll tie into it in a
bit to note when i_nlink hits zero.

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>
28 files changed:
drivers/usb/core/inode.c
fs/autofs/root.c
fs/autofs4/root.c
fs/bfs/dir.c
fs/cifs/inode.c
fs/coda/dir.c
fs/ext2/namei.c
fs/ext3/namei.c
fs/hfs/dir.c
fs/hfsplus/dir.c
fs/hpfs/namei.c
fs/jffs/inode-v23.c
fs/jffs2/dir.c
fs/jfs/namei.c
fs/libfs.c
fs/minix/namei.c
fs/msdos/namei.c
fs/nfs/dir.c
fs/ocfs2/namei.c
fs/qnx4/namei.c
fs/reiserfs/namei.c
fs/sysv/namei.c
fs/udf/namei.c
fs/ufs/namei.c
fs/vfat/namei.c
include/linux/fs.h
ipc/mqueue.c
mm/shmem.c