From: Erez_Zadok Date: Fri, 16 Nov 2007 18:47:05 +0000 (-0500) Subject: Unionfs: use igrab instead of atomic_inc inode refcnt X-Git-Url: https://git.fsl.cs.sunysb.edu/?a=commitdiff_plain;h=41e980356d4cdd74bfa4037647bfda7ebef3652e;p=unionfs-odf.git 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 --- diff --git a/fs/unionfs/super.c b/fs/unionfs/super.c index 1d53608ba4..261390fdd7 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 */