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
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
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
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
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
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
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
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