Mark Fasheh 17ff785691 [PATCH] r/o bind mounts: clean up OCFS2 nlink handling
OCFS2 does some operations on i_nlink, then reverts them if some of its
operations fail to complete.  This does not fit in well with the
drop_nlink() logic where we expect i_nlink to stay at zero once it gets
there.

So, delay all of the nlink operations until we're sure that the operations
have completed.  Also, introduce a small helper to check whether an inode
has proper "unlinkable" i_nlink counts no matter whether it is a directory
or regular inode.

This patch is broken out from the others because it does contain some
logical changes.

Signed-off-by: Dave Hansen <haveblue@us.ibm.com>
Signed-off-by: Mark Fasheh <mark.fasheh@oracle.com>
Cc: 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>
2006-10-01 00:39:30 -07:00
..
2006-09-20 16:00:54 -07:00
2006-05-17 14:38:47 -07:00
2006-09-20 15:53:40 -07:00
2006-09-20 15:48:39 -07:00
2006-08-07 11:07:01 -07:00
2006-09-20 15:48:39 -07:00
2006-09-20 15:48:39 -07:00
2006-08-07 11:07:01 -07:00
2006-06-29 16:03:17 -07:00
2006-08-07 11:07:01 -07:00
2006-08-07 11:07:01 -07:00
2006-03-24 14:58:24 -08:00
2006-09-24 13:50:43 -07:00
2006-09-24 13:50:43 -07:00