commit 37ccef8765ab47dc8b2f82add12ee44dc29f0fe3
Author: Erez_Zadok <[EMAIL PROTECTED]>
Date: Fri Nov 16 13:47:05 2007 -0500
Unionfs: use igrab instead of atomic_inc inode refcnt
In branch management code, use igrab() which is better than directly
incrementing the lower inode reference count.
Signed-off-by: Erez Zadok <[EMAIL PROTECTED]>
diff --git a/fs/unionfs/super.c b/fs/unionfs/super.c
index 1d53608..261390f 100644
--- a/fs/unionfs/super.c
+++ b/fs/unionfs/super.c
@@ -773,7 +773,7 @@ out_no_change:
for (i=dbstart(sb->s_root); i<=dbend(sb->s_root); i++) {
struct dentry *lower_dentry =
unionfs_lower_dentry_idx(sb->s_root, i);
- atomic_inc(&lower_dentry->d_inode->i_count);
+ igrab(lower_dentry->d_inode);
new_lower_inodes[i] = lower_dentry->d_inode;
}
/* 2. release reference on all older lower inodes */
_______________________________________________
unionfs-cvs mailing list: http://unionfs.filesystems.org/
[email protected]
http://www.fsl.cs.sunysb.edu/mailman/listinfo/unionfs-cvs