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

2024-02-24 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 v3 2/2] f2fs: support file pinning for zoned devices

2024-02-24 Thread Chao Yu
On 2024/2/24 1:31, Jaegeuk Kim wrote: Hi Chao, I've tested the patch and queued in -dev, so can you take a look at it and propose any change on top of it? Then, we can discuss further on it. Okay, let me send patches for comments. Thanks, On 02/23, Chao Yu wrote: On 2024/2/14 1:38, Daeho

Re: [f2fs-dev] [PATCH] f2fs: introduce SEGS_TO_BLKS/BLKS_TO_SEGS for cleanup

2024-02-24 Thread Chao Yu
On 2024/2/24 2:17, Jaegeuk Kim wrote: Chao, I applied the below as well in order to keep zone capacity back. Jaegeuk, copied, thanks. Thanks, --- a/fs/f2fs/segment.h +++ b/fs/f2fs/segment.h @@ -101,11 +101,10 @@ static inline void sanity_check_seg_type(struct f2fs_sb_info *sbi,