summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk.kim@samsung.com>2013-05-22 12:06:26 +0900
committerChanho Park <chanho61.park@samsung.com>2014-11-18 11:43:47 +0900
commit3fd7a38f3894bf37db1f6b3d653b60a8d9a7a4bc (patch)
tree7cb3f4e140e7af196567c4e6c90f7ca3b05174cc /fs
parenta68d0aa1197bf626011845ee125fe625f8325d27 (diff)
downloadlinux-3.10-3fd7a38f3894bf37db1f6b3d653b60a8d9a7a4bc.tar.gz
linux-3.10-3fd7a38f3894bf37db1f6b3d653b60a8d9a7a4bc.tar.bz2
linux-3.10-3fd7a38f3894bf37db1f6b3d653b60a8d9a7a4bc.zip
f2fs: use ihold
Use the following helper function committed by Al. commit 7de9c6ee3ecffd99e1628e81a5ea5468f7581a1f Author: Al Viro <viro@zeniv.linux.org.uk> Date: Sat Oct 23 11:11:40 2010 -0400 new helper: ihold() ... Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/f2fs/namei.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/namei.c b/fs/f2fs/namei.c
index 71aa30559c5..efe0a127cb7 100644
--- a/fs/f2fs/namei.c
+++ b/fs/f2fs/namei.c
@@ -172,7 +172,7 @@ static int f2fs_link(struct dentry *old_dentry, struct inode *dir,
f2fs_balance_fs(sbi);
inode->i_ctime = CURRENT_TIME;
- atomic_inc(&inode->i_count);
+ ihold(inode);
set_inode_flag(F2FS_I(inode), FI_INC_LINK);
ilock = mutex_lock_op(sbi);