Skip to contentSkip to conversation

f2fs: fix wrong statistics of inline data

PATCH Superseded Chao Yu 1 participant 1 message Apr 4, 2014

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Chao Yu

author
#0 lore raw

PATCH 1/1 f2fs: fix wrong statistics of inline data

If we remove a file that has inline data after mount, our statistics turns to inaccurate.

cat /sys/kernel/debug/f2fs/status
- Inline_data Inode: 4294967295

Let's add stat_inc_inline_inode() to stat inline info of the file when lookup.

---
 fs/f2fs/inode.c |    2 ++
 1 file changed, 2 insertions(+)
fs/f2fs/inode.c +2 -0
index 0d8e4a2..4f1c225 100644
@@ -112,6 +112,8 @@ static int do_read_inode(struct inode *inode)
 	get_extent_info(&fi->ext, ri->i_ext);
 	get_inline_info(fi, ri);
 
+	stat_inc_inline_inode(inode);
+
 	/* get rdev by using inline_info */
 	__get_inode_rdev(inode, ri);
 
Signature · 1 line
1.7.9.5