From 9249dded7b5cb539a8c8698b25d08a3c15261470 Mon Sep 17 00:00:00 2001 From: Qiuyang Sun Date: Tue, 18 Dec 2018 17:32:23 +0800 Subject: f2fs: fix block address for __check_sit_bitmap Should use lstart (logical start address) instead of start (in dev) here. This fixes a bug in multi-device scenarios. Signed-off-by: Qiuyang Sun Reviewed-by: Chao Yu Signed-off-by: Jaegeuk Kim --- fs/f2fs/segment.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fs/f2fs') diff --git a/fs/f2fs/segment.c b/fs/f2fs/segment.c index d9a3345a244a..009971ea8f08 100644 --- a/fs/f2fs/segment.c +++ b/fs/f2fs/segment.c @@ -1151,7 +1151,7 @@ submit: list_move_tail(&dc->list, wait_list); /* sanity check on discard range */ - __check_sit_bitmap(sbi, start, start + len); + __check_sit_bitmap(sbi, lstart, lstart + len); bio->bi_private = dc; bio->bi_end_io = f2fs_submit_discard_endio; -- cgit v1.2.3