android_kernel_xiaomi_sm8350/fs/ocfs2
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
..
cluster ocfs2: Remove i_generation from inode lock names 2006-09-24 13:50:46 -07:00
dlm [PATCH] r/o bind mount prepwork: inc_nlink() helper 2006-10-01 00:39:30 -07:00
alloc.c
alloc.h
aops.c
aops.h
buffer_head_io.c
buffer_head_io.h
dcache.c ocfs2: Remove special casing for inode creation in ocfs2_dentry_attach_lock() 2006-09-24 13:50:45 -07:00
dcache.h ocfs2: Remove special casing for inode creation in ocfs2_dentry_attach_lock() 2006-09-24 13:50:45 -07:00
dir.c
dir.h
dlmglue.c [PATCH] inode_diet: Replace inode.u.generic_ip with inode.i_private 2006-09-27 08:26:17 -07:00
dlmglue.h ocfs2: Remove i_generation from inode lock names 2006-09-24 13:50:46 -07:00
endian.h
export.c ocfs2: Remove i_generation from inode lock names 2006-09-24 13:50:46 -07:00
export.h
extent_map.c
extent_map.h
file.c [PATCH] Vectorize aio_read/aio_write fileop methods 2006-10-01 00:39:28 -07:00
file.h
heartbeat.c
heartbeat.h
inode.c [PATCH] inode-diet: Eliminate i_blksize from the inode structure 2006-09-27 08:26:18 -07:00
inode.h ocfs2: Remove i_generation from inode lock names 2006-09-24 13:50:46 -07:00
ioctl.c
ioctl.h
journal.c ocfs2: Remove i_generation from inode lock names 2006-09-24 13:50:46 -07:00
journal.h
localalloc.c
localalloc.h
Makefile
mmap.c
mmap.h
namei.c [PATCH] r/o bind mounts: clean up OCFS2 nlink handling 2006-10-01 00:39:30 -07:00
namei.h
ocfs1_fs_compat.h
ocfs2_fs.h
ocfs2_lockid.h ocfs2: Add new cluster lock type 2006-09-24 13:50:42 -07:00
ocfs2.h
slot_map.c
slot_map.h
suballoc.c
suballoc.h
super.c ocfs2: Remove i_generation from inode lock names 2006-09-24 13:50:46 -07:00
super.h
symlink.c
symlink.h
sysfile.c ocfs2: Remove i_generation from inode lock names 2006-09-24 13:50:46 -07:00
sysfile.h
uptodate.c
uptodate.h
ver.c
ver.h
vote.c ocfs2: Remove the dentry vote 2006-09-24 13:50:43 -07:00
vote.h ocfs2: Remove the dentry vote 2006-09-24 13:50:43 -07:00