[f2fs-dev] [PATCH] f2fs: introduce hot_data_age_threshold and warm_data_age_threshold mount opt

2022-12-05 Thread Yangtao Li via Linux-f2fs-devel
This patch supports parsing these two parameters from mount opt, so that we don't have to dynamically modify the parameters through the sysfs node after the system starts. Signed-off-by: Yangtao Li --- Documentation/filesystems/f2fs.rst | 6 + fs/f2fs/debug.c| 3 ++-

Re: [f2fs-dev] [PATCH v3 14/23] f2fs: Convert f2fs_write_cache_pages() to use filemap_get_folios_tag()

2022-12-05 Thread Vishal Moola
On Tue, Nov 22, 2022 at 6:26 PM Vishal Moola wrote: > > On Mon, Nov 14, 2022 at 1:38 PM Vishal Moola wrote: > > > > On Sun, Nov 13, 2022 at 11:02 PM Chao Yu wrote: > > > > > > On 2022/10/18 4:24, Vishal Moola (Oracle) wrote: > > > > Converted the function to use a folio_batch instead of

Re: [f2fs-dev] [PATCH 1/5] f2fs: record total data blocks allocated since mount

2022-12-05 Thread Jaegeuk Kim
On 11/28, Jaegeuk Kim wrote: > On 11/28, qixiaoyu1 wrote: > > From: xiongping1 > > > > Signed-off-by: xiongping1 > > Signed-off-by: qixiaoyu1 > > --- > > fs/f2fs/Kconfig | 7 +++ > > fs/f2fs/Makefile| 1 + > > fs/f2fs/block_age.c | 28 > >

[f2fs-dev] [PATCH 4/6] f2fs: refactor extent_cache to support for read and more

2022-12-05 Thread Jaegeuk Kim
This patch prepares extent_cache to be ready for addition. Signed-off-by: Jaegeuk Kim --- fs/f2fs/data.c | 20 +- fs/f2fs/debug.c | 65 +++-- fs/f2fs/extent_cache.c | 463 +--- fs/f2fs/f2fs.h | 108 ++---

[f2fs-dev] [PATCH 1/6] f2fs: specify extent cache for read explicitly

2022-12-05 Thread Jaegeuk Kim
Let's descrbie it's read extent cache. Signed-off-by: Jaegeuk Kim --- fs/f2fs/extent_cache.c | 4 ++-- fs/f2fs/f2fs.h | 10 +- fs/f2fs/inode.c| 2 +- fs/f2fs/node.c | 2 +- fs/f2fs/node.h | 2 +- fs/f2fs/segment.c | 4 ++-- fs/f2fs/super.c

[f2fs-dev] [PATCH 6/6] f2fs: add block_age-based extent cache

2022-12-05 Thread Jaegeuk Kim
This patch introduces a runtime hot/cold data separation method for f2fs, in order to improve the accuracy for data temperature classification, reduce the garbage collection overhead after long-term data updates. Enhanced hot/cold data separation can record data block update frequency as "age" of

[f2fs-dev] [PATCH 5/6] f2fs: allocate the extent_cache by default

2022-12-05 Thread Jaegeuk Kim
Let's allocate it to remove the runtime complexity. Signed-off-by: Jaegeuk Kim --- fs/f2fs/extent_cache.c | 38 +++--- fs/f2fs/f2fs.h | 3 ++- fs/f2fs/inode.c| 6 -- fs/f2fs/namei.c| 4 ++-- 4 files changed, 27 insertions(+), 24

[f2fs-dev] [PATCH 3/6] f2fs: remove unnecessary __init_extent_tree

2022-12-05 Thread Jaegeuk Kim
Added into the caller. Signed-off-by: Jaegeuk Kim --- fs/f2fs/extent_cache.c | 21 + 1 file changed, 5 insertions(+), 16 deletions(-) diff --git a/fs/f2fs/extent_cache.c b/fs/f2fs/extent_cache.c index 2a8e31e6d518..c6810347e205 100644 --- a/fs/f2fs/extent_cache.c +++

[f2fs-dev] [PATCH 2/6] f2fs: move internal functions into extent_cache.c

2022-12-05 Thread Jaegeuk Kim
No functional change. Signed-off-by: Jaegeuk Kim --- fs/f2fs/extent_cache.c | 88 +- fs/f2fs/f2fs.h | 69 + 2 files changed, 81 insertions(+), 76 deletions(-) diff --git a/fs/f2fs/extent_cache.c

[f2fs-dev] [PATCH] f2fs: fix iostat parameter for discard

2022-12-05 Thread Yangtao Li via Linux-f2fs-devel
Just like other data we count uses the number of bytes as the basic unit, but discard uses the number of cmds as the statistical unit. In fact the discard command contains the number of blocks, so let's change to the number of bytes as the base unit. Fixes: b0af6d491a6b ("f2fs: add app/fs io