f2fs: fix passing relative address when discard zones
PATCH 1/1 f2fs: fix passing relative address when discard zones
From: Daeho Jeong <[email protected]>
We should not pass relative address in a zone to__f2fs_issue_discard_zone().
Signed-off-by Daeho Jeong <[email protected]>
--- fs/f2fs/segment.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
fs/f2fs/segment.c +2 -3
@@ -4942,9 +4942,8 @@ static int fix_curseg_write_pointer(struct f2fs_sb_info *sbi, int type)"New zone for curseg[%d] is not yet discarded. " "Reset the zone: curseg[0x%x,0x%x]" , type, cs->segno, cs->next_blkoff); - err =__f2fs_issue_discard_zone (sbi, zbd->bdev, - zone_sector >> log_sectors_per_block, - zone.len >> log_sectors_per_block); + err =__f2fs_issue_discard_zone (sbi, zbd->bdev, cs_zone_block, + zone.len >> log_sectors_per_block);if (err) {f2fs_err (sbi,"Discard zone failed: %s (errno=%d)" , zbd->path, err);
Signature · 1 line
2.40.0.577.gac1e443424-goog
Quoted 6 lines · Daeho Jeong
From: Daeho Jeong <[email protected]>
We should not pass relative address in a zone to
__f2fs_issue_discard_zone().Signed-off-by Daeho Jeong <[email protected]>
Reviewed-by Chao Yu <[email protected]>
Thanks,
This patch was applied to jaegeuk/f2fs.git (dev) by Jaegeuk Kim <[email protected]>:
Hello:
This patch was applied to jaegeuk/f2fs.git (dev)
by Jaegeuk Kim <[email protected]>:
Quoted 8 lines · On Thu, 6 Apr 2023 15:11:04 -0700 you wrote:
From: Daeho Jeong <[email protected]>
We should not pass relative address in a zone to
__f2fs_issue_discard_zone().Signed-off-by Daeho Jeong <[email protected]>[...]
Here is the summary with links:
- [f2fs-dev] f2fs: fix passing relative address when discard zones
https://git.kernel.org/jaegeuk/f2fs/c/1ac3d037bee9
You are awesome, thank you!
Signature · 10 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html _______________________________________________ Linux-f2fs-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel