Re: [f2fs-dev] [PATCH 2/3 v2] f2fs: use BLKS_PER_SEG, BLKS_PER_SEC, and SEGS_PER_SEC

From: Chao Yu
Date: Tue Feb 20 2024 - 20:04:40 EST


On 2024/2/21 4:33, Jaegeuk Kim wrote:
@@ -4723,7 +4723,7 @@ static int f2fs_fill_super(struct super_block *sb, void *data, int silent)
.reason = CP_DISCARD,
.trim_start = 0,
.trim_end = MAIN_SEGS(sbi) - 1,
- .trim_minlen = sbi->blocks_per_seg,
+ .trim_minlen = BLKS_PER_SEG(sbi),

We don't have this.

Oh, it's due to my branch is not clean... I should rebase this diff to
last dev-test, sorry.

Thanks,


};
f2fs_write_checkpoint(sbi, &cpc);
}
--
2.40.1