projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
97dc3fd
)
f2fs: fix incorrectly stat number of inline data inode
author
Chao Yu
<chao2.yu@samsung.com>
Mon, 16 Feb 2015 08:20:27 +0000
(16:20 +0800)
committer
Jaegeuk Kim
<jaegeuk@kernel.org>
Tue, 3 Mar 2015 17:58:45 +0000
(09:58 -0800)
We should stat inline data information for temp file in f2fs_tmpfile if we
enable inline_data feature.
Otherwise, inline data stat number will be wrong after this temp file is
evicted.
Signed-off-by: Chao Yu <chao2.yu@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/namei.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/f2fs/namei.c
b/fs/f2fs/namei.c
index e79639a9787aab0f5d8d8b27fae7354a5cd087b6..1e2ae21bd6b6010e18c5949b7625ef3dd3e0e704 100644
(file)
--- a/
fs/f2fs/namei.c
+++ b/
fs/f2fs/namei.c
@@
-693,6
+693,8
@@
static int f2fs_tmpfile(struct inode *dir, struct dentry *dentry, umode_t mode)
f2fs_unlock_op(sbi);
alloc_nid_done(sbi, inode->i_ino);
+
+ stat_inc_inline_inode(inode);
d_tmpfile(dentry, inode);
unlock_new_inode(inode);
return 0;