commit 4fea3c25ff141aba2dca56c91f50aa22a5342d7d
Author: Erez_Zadok <[EMAIL PROTECTED]>
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 <[EMAIL PROTECTED]>

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 */
_______________________________________________
unionfs-cvs mailing list: http://unionfs.filesystems.org/
[email protected]
http://www.fsl.cs.sunysb.edu/mailman/listinfo/unionfs-cvs

Reply via email to