Re: [PATCH] f2fs: introduce a new per-sb directory in sysfs

2020-12-05 Thread Jaegeuk Kim
On 12/05, Chao Yu wrote: > On 2020/12/5 2:23, Jaegeuk Kim wrote: > > On 12/03, Chao Yu wrote: > > > Jaegeuk, > > > > > > Can you comment on this patch? > > > > Waiting for use-case? :) > > How do you think of duplicating below stats into /sys/fs/f2fs//stat/ We can't move them to /stat, since

Re: [PATCH] f2fs: introduce a new per-sb directory in sysfs

2020-12-04 Thread Chao Yu
On 2020/12/5 2:23, Jaegeuk Kim wrote: On 12/03, Chao Yu wrote: Jaegeuk, Can you comment on this patch? Waiting for use-case? :) How do you think of duplicating below stats into /sys/fs/f2fs//stat/ F2FS_GENERAL_RO_ATTR(dirty_segments); F2FS_GENERAL_RO_ATTR(free_segments);

Re: [PATCH] f2fs: introduce a new per-sb directory in sysfs

2020-12-04 Thread Jaegeuk Kim
On 12/03, Chao Yu wrote: > Jaegeuk, > > Can you comment on this patch? Waiting for use-case? :) > > On 2020/11/27 17:01, Chao Yu wrote: > > Add a new directory 'stat' in path of /sys/fs/f2fs//, later > > we can add new readonly stat sysfs file into this directory, it will > > make directory

Re: [PATCH] f2fs: introduce a new per-sb directory in sysfs

2020-12-03 Thread Chao Yu
Jaegeuk, Can you comment on this patch? On 2020/11/27 17:01, Chao Yu wrote: Add a new directory 'stat' in path of /sys/fs/f2fs//, later we can add new readonly stat sysfs file into this directory, it will make directory less mess. Signed-off-by: Chao Yu --- fs/f2fs/f2fs.h | 5 +++-

[PATCH] f2fs: introduce a new per-sb directory in sysfs

2020-11-27 Thread Chao Yu
Add a new directory 'stat' in path of /sys/fs/f2fs//, later we can add new readonly stat sysfs file into this directory, it will make directory less mess. Signed-off-by: Chao Yu --- fs/f2fs/f2fs.h | 5 +++- fs/f2fs/sysfs.c | 69 + 2 files