* [f2fs-dev] [PATCH] f2fs: fix wrong statistics of inline data
@ 2014-04-04 9:06 Chao Yu
0 siblings, 0 replies; only message in thread
From: Chao Yu @ 2014-04-04 9:06 UTC (permalink / raw)
To: ???; +Cc: linux-f2fs-devel, linux-fsdevel, linux-kernel
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.
Signed-off-by: Chao Yu <chao2.yu@samsung.com>
---
fs/f2fs/inode.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/fs/f2fs/inode.c b/fs/f2fs/inode.c
index 0d8e4a2..4f1c225 100644
--- a/fs/f2fs/inode.c
+++ b/fs/f2fs/inode.c
@@ -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);
--
1.7.9.5
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2014-04-04 9:07 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-04 9:06 [f2fs-dev] [PATCH] f2fs: fix wrong statistics of inline data Chao Yu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).