From: Dave Hansen Date: Sun, 1 Oct 2006 06:29:03 +0000 (-0700) Subject: [PATCH] r/o bind mounts: unlink: monitor i_nlink X-Git-Tag: v2.6.19-rc1~529 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9a53c3a783c2fa9b969628e65695c11c3e51e673;p=pandora-kernel.git [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 Acked-by: Christoph Hellwig Cc: Al Viro Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed