Skip to content

Commit

Permalink
f2fs: use ihold
Browse files Browse the repository at this point in the history
Use the following helper function committed by Al.

commit 7de9c6e
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>
  • Loading branch information
Jaegeuk Kim committed May 28, 2013
1 parent 93ff10d commit 6f6fd83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/f2fs/namei.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 6f6fd83

Please sign in to comment.