Messages in this thread | | | Subject | Re: [f2fs-dev] [PATCH v2] f2fs: add sysfs nodes to get accumulated compression info | From | Chao Yu <> | Date | Tue, 9 Mar 2021 17:22:08 +0800 |
| |
On 2021/3/5 10:24, Daeho Jeong wrote: > From: Daeho Jeong <daehojeong@google.com> > > Added acc_compr_inodes to show accumulated compressed inode count and > acc_compr_blocks to show accumulated secured block count with
I noticed that these stat numbers are recorded in extra reserved area in hot node curseg journal, the journal will be persisted only for umount or fastboot checkpoint, so the numbers are not so accurate... does this satisfy your requirement?
> compression in sysfs. These can be re-initialized to "0" by writing "0" > value in one of both.
Why do we allow reset the stat numbers?
Why not covering all code with macro CONFIG_F2FS_FS_COMPRESSION, since these numbers are only be updated when we enable compression.
Thanks,
| |