Re: [f2fs-dev] [PATCH v3 2/2] f2fs: support file pinning for zoned devices

2024-02-22 Thread Chao Yu
On 2024/2/14 1:38, Daeho Jeong wrote: From: Daeho Jeong Support file pinning with conventional storage area for zoned devices Signed-off-by: Daeho Jeong Signed-off-by: Jaegeuk Kim --- v3: check the hole when migrating blocks for swap. do not use the remainder of cold pin section. v2:

Re: [f2fs-dev] [PATCH v3 2/2] f2fs: support file pinning for zoned devices

2024-02-22 Thread Chao Yu
On 2024/2/14 1:38, Daeho Jeong wrote: From: Daeho Jeong Support file pinning with conventional storage area for zoned devices Signed-off-by: Daeho Jeong Signed-off-by: Jaegeuk Kim --- v3: check the hole when migrating blocks for swap. do not use the remainder of cold pin section. v2:

Re: [f2fs-dev] [PATCH v3 2/2] f2fs: support file pinning for zoned devices

2024-02-22 Thread Chao Yu
Hi Daeho, On 2024/2/14 1:38, Daeho Jeong wrote: From: Daeho Jeong Support file pinning with conventional storage area for zoned devices Signed-off-by: Daeho Jeong Signed-off-by: Jaegeuk Kim --- v3: check the hole when migrating blocks for swap. do not use the remainder of cold pin

[f2fs-dev] [PATCH] f2fs: fix to use correct segment type in f2fs_allocate_data_block()

2024-02-22 Thread Chao Yu
@type in f2fs_allocate_data_block() indicates log header's type, it can be CURSEG_COLD_DATA_PINNED or CURSEG_ALL_DATA_ATGC, rather than type of data/node, however IS_DATASEG()/IS_NODESEG() only accept later one, fix it. Fixes: 093749e296e2 ("f2fs: support age threshold based garbage collection")

Re: [f2fs-dev] [PATCH v2 0/4] f2fs: fix panic issue in small capacity device

2024-02-22 Thread Chao Yu
On 2024/2/23 10:01, Zhiguo Niu wrote: On Thu, Feb 22, 2024 at 8:30 PM Chao Yu mailto:c...@kernel.org>> wrote: On 2024/2/7 10:01, Zhiguo Niu wrote: > A panic issue happened in a reboot test in small capacity device > as following: > 1.The device size is 64MB, and main area

Re: [f2fs-dev] [PATCH 3/3 v2] f2fs: kill zone-capacity support

2024-02-22 Thread Matias Bjørling
On 21-02-2024 18:27, Jaegeuk Kim wrote: Doesn't this break practically all ZNS NVMe devices? Yes, so here I'm in questioning who is really using w/ zone capacity. If there's no user complaining, I'd like to deprecate this, since this adds code complexity and unnecessary checks. Hi Jaegeuk,

Re: [f2fs-dev] [PATCH v2 0/4] f2fs: fix panic issue in small capacity device

2024-02-22 Thread Chao Yu
On 2024/2/7 10:01, Zhiguo Niu wrote: A panic issue happened in a reboot test in small capacity device as following: 1.The device size is 64MB, and main area has 24 segments, and CONFIG_F2FS_CHECK_FS is not enabled. 2.There is no any free segments left shown in free_segmap_info, then another

[f2fs-dev] [PATCH 2/4] f2fs: fix to don't call f2fs_stop_checkpoint in spinlock coverage

2024-02-22 Thread Chao Yu
f2fs_stop_checkpoint(, false) is complex and it may sleep, so we should move it outside segmap_lock spinlock coverage in get_new_segment(). Signed-off-by: Chao Yu --- fs/f2fs/segment.c | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/fs/f2fs/segment.c

[f2fs-dev] [PATCH 1/4] f2fs: delete f2fs_get_new_segment() declaration

2024-02-22 Thread Chao Yu
Commit 093749e296e2 ("f2fs: support age threshold based garbage collection") added this declaration, but w/ definition, delete it. Signed-off-by: Chao Yu --- fs/f2fs/f2fs.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h index 8a6fd4352a0e..fbbe9a0a4221

[f2fs-dev] [PATCH 4/4] f2fs: introduce FAULT_NO_SEGMENT

2024-02-22 Thread Chao Yu
Use it to simulate no free segment case during block allocation. Signed-off-by: Chao Yu --- Documentation/ABI/testing/sysfs-fs-f2fs | 1 + Documentation/filesystems/f2fs.rst | 1 + fs/f2fs/f2fs.h | 1 + fs/f2fs/segment.c | 5 +

[f2fs-dev] [PATCH 3/4] f2fs: fix to handle segment allocation failure correctly

2024-02-22 Thread Chao Yu
If CONFIG_F2FS_CHECK_FS is off, and for very rare corner case that we run out of free segment, we should not panic kernel, instead, let's handle such error correctly in its caller. Signed-off-by: Chao Yu --- fs/f2fs/data.c| 7 +-- fs/f2fs/f2fs.h| 2 +- fs/f2fs/file.c| 7

Re: [f2fs-dev] [PATCH v4 4/4] f2fs: stop checkpoint when get a out-of-bounds segment

2024-02-22 Thread Chao Yu
On 2024/2/22 15:15, Zhiguo Niu wrote: On Thu, Feb 22, 2024 at 2:12 PM Chao Yu mailto:c...@kernel.org>> wrote: On 2024/2/22 13:48, Zhiguo Niu wrote: > Dear Chao, > > On Thu, Feb 22, 2024 at 11:51 AM Chao Yu mailto:c...@kernel.org>

Re: [f2fs-dev] [PATCH] f2fs: support SEEK_DATA and SEEK_HOLE for compression files

2024-02-22 Thread Chao Yu
On 2024/2/16 4:16, Daeho Jeong wrote: From: Daeho Jeong Fix to support SEEK_DATA and SEEK_HOLE for compression files Signed-off-by: Daeho Jeong Reviewed-by: Chao Yu Thanks, ___ Linux-f2fs-devel mailing list

[f2fs-dev] 答复: [PATCH] f2fs: compress: reserve blocks on released compress inode while writing

2024-02-22 Thread 李扬韬 via Linux-f2fs-devel
Ping.. ___ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel