From c3f964daca063ad27d4860304e6222f9497fa915 Mon Sep 17 00:00:00 2001 From: Erez_Zadok Date: Mon, 16 Jul 2007 23:45:46 -0400 Subject: [PATCH] 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 --- fs/unionfs/super.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/unionfs/super.c b/fs/unionfs/super.c index c168b2383c3..f4118dfa0a3 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 */ -- 2.34.1