[f2fs-dev] [PATCH] f2fs: decrease spare area for pinned files for zoned devices

2024-10-15 Thread Daeho Jeong
From: Daeho Jeong Now we reclaim too much space before allocating pinned space for zoned devices. Signed-off-by: Daeho Jeong --- fs/f2fs/file.c| 3 ++- fs/f2fs/gc.h | 1 + fs/f2fs/segment.c | 3 ++- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/fs/f2fs/file.c b/fs/f2f

Re: [f2fs-dev] [PATCH v5] f2fs: introduce device aliasing file

2024-10-15 Thread Jaegeuk Kim via Linux-f2fs-devel
On 10/14, Christoph Hellwig wrote: > On Mon, Oct 14, 2024 at 04:42:07PM +, Jaegeuk Kim wrote: > > > > > > Plz, refer to this patch and the description there. > > > > > > https://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs-tools.git/commit/?h=dev-test&id=8cc4e257ec20bee207bb034d5ac406

Re: [f2fs-dev] [PATCH] mkfs.f2fs: don't trim on aliased partition

2024-10-15 Thread Daeho Jeong
Reviewed-by: Daeho Jeong Thanks, On Tue, Oct 15, 2024 at 9:58 AM Jaegeuk Kim via Linux-f2fs-devel wrote: > > Signed-off-by: Jaegeuk Kim > --- > mkfs/f2fs_format_utils.c | 5 + > 1 file changed, 5 insertions(+) > > diff --git a/mkfs/f2fs_format_utils.c b/mkfs/f2fs_format_utils.c > index 1c

[f2fs-dev] [PATCH] mkfs.f2fs: don't trim on aliased partition

2024-10-15 Thread Jaegeuk Kim via Linux-f2fs-devel
Signed-off-by: Jaegeuk Kim --- mkfs/f2fs_format_utils.c | 5 + 1 file changed, 5 insertions(+) diff --git a/mkfs/f2fs_format_utils.c b/mkfs/f2fs_format_utils.c index 1c2003e8d107..1a9746a77184 100644 --- a/mkfs/f2fs_format_utils.c +++ b/mkfs/f2fs_format_utils.c @@ -48,6 +48,11 @@ static int

[f2fs-dev] [PATCH v6] f2fs: introduce device aliasing file

2024-10-15 Thread Daeho Jeong
From: Daeho Jeong F2FS should understand how the device aliasing file works and support deleting the file after use. A device aliasing file can be created by mkfs.f2fs tool and it can map the whole device with an extent, not using node blocks. The file space should be pinned and normally used for

[f2fs-dev] [RFC PATCH 1/2] f2fs: introduce update_sit_entry_for_release()

2024-10-15 Thread Yi Sun
This function can process some consecutive blocks at a time. Signed-off-by: Yi Sun --- fs/f2fs/segment.c | 91 +-- 1 file changed, 56 insertions(+), 35 deletions(-) diff --git a/fs/f2fs/segment.c b/fs/f2fs/segment.c index d91fbd1b27ba..f118faf36d35 10

[f2fs-dev] [RFC PATCH 2/2] f2fs: introduce f2fs_invalidate_consecutive_blocks()

2024-10-15 Thread Yi Sun
When doing truncate, consecutive blocks in the same segment can be processed at the same time. So that the efficiency of doing truncate can be improved. Add f2fs_invalidate_compress_pages_range() only for doing truncate. Add check_f2fs_invalidate_consecutive_blocks() only for doing truncate and to

[f2fs-dev] [RFC PATCH 0/2] Speed up f2fs truncate

2024-10-15 Thread Yi Sun
Deleting large files is time-consuming, and a large part of the time is spent in f2fs_invalidate_blocks() ->down_write(sit_info->sentry_lock) and up_write(). If some blocks are continuous and belong to the same segment, we can process these blocks at the same time. This can reduce the number of ca