GIT: unionfs2-2.6.27.y: Unionfs: use igrab instead of atomic_inc inode refcnt
Erez Zadok
ezk at fsl.cs.sunysb.edu
Thu Aug 12 23:16:46 EDT 2010
commit bd343ca5921ffa4a94b34b9293a6e99bdb77eb3e
Author: Erez_Zadok <ezk at cs.sunysb.edu>
Date: Mon Jul 16 23:45:46 2007 -0400
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 <ezk at cs.sunysb.edu>
diff --git a/fs/unionfs/super.c b/fs/unionfs/super.c
index c168b23..f4118df 100644
--- a/fs/unionfs/super.c
+++ b/fs/unionfs/super.c
@@ -740,7 +740,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 */
More information about the unionfs-cvs
mailing list