[f2fs-dev] [PATCH 2/2] f2fs: add sysfs nodes to set last_age_weight

2023-01-13 Thread qixiaoyu1
Signed-off-by: qixiaoyu1 --- Documentation/ABI/testing/sysfs-fs-f2fs | 5 + fs/f2fs/extent_cache.c | 11 +++ fs/f2fs/f2fs.h | 1 + fs/f2fs/sysfs.c | 11 +++ 4 files changed, 24 insertions(+), 4 deletions(-) d

[f2fs-dev] [PATCH 1/2] f2fs: fix wrong calculation of block age

2023-01-13 Thread qixiaoyu1
Currently we wrongly calculate the new block age to old * LAST_AGE_WEIGHT / 100. Fix it to new * (100 - LAST_AGE_WEIGHT) / 100 + old * LAST_AGE_WEIGHT / 100. Signed-off-by: qixiaoyu1 --- fs/f2fs/extent_cache.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --gi

Re: [f2fs-dev] [PATCH] f2fs: use iostat_lat_type directly as a parameter in the iostat_update_and_unbind_ctx()

2023-01-13 Thread Dan Carpenter
Hi Yangtao, https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Yangtao-Li/f2fs-use-iostat_lat_type-directly-as-a-parameter-in-the-iostat_update_and_unbind_ctx/20230105-122414 base: https://git.kernel.org/pub/scm/linux/kernel

Re: [f2fs-dev] [PATCH v5 09/23] cifs: Convert wdata_alloc_and_fillpages() to use filemap_get_folios_tag()

2023-01-13 Thread Tom Talpey
This code would be a lot more readable if it had fewer goto's. The goto out's are ok but the again and add_more are easily eliminated. Two possibilities... On 1/12/2023 12:19 PM, Vishal Moola wrote: On Wed, Jan 4, 2023 at 1:15 PM Vishal Moola (Oracle) wrote: This is in preparation for the re