projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
93ff10d
)
f2fs: use ihold
author
Jaegeuk Kim
<jaegeuk.kim@samsung.com>
Wed, 22 May 2013 03:06:26 +0000
(12:06 +0900)
committer
Jaegeuk Kim
<jaegeuk.kim@samsung.com>
Tue, 28 May 2013 06:03:04 +0000
(15:03 +0900)
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>
fs/f2fs/namei.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/f2fs/namei.c
b/fs/f2fs/namei.c
index 71aa30559c53912abb71dfe876f45e37345cfb51..efe0a127cb76acb70eb549e43ed6269fc019d12d 100644
(file)
--- 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);