Skip to contentSkip to conversation

f2fs: fix incorrectly stat number of inline data inode

PATCH New Chao Yu 1 participant 1 message Feb 16, 2015 F2FS file system

lore
Share & tools
lore

Chao Yu

author
#0 lore raw

PATCH 4/4 f2fs: fix incorrectly stat number of inline data inode

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.

---
 fs/f2fs/namei.c | 2 ++
 1 file changed, 2 insertions(+)
fs/f2fs/namei.c +2 -0
index e79639a9..1e2ae21 100644
@@ -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;
Signature · 1 line
2.2.1