summaryrefslogtreecommitdiff
path: root/fs/f2fs
diff options
context:
space:
mode:
authorQiuyang Sun <sunqiuyang@huawei.com>2018-12-18 17:32:23 +0800
committerJaegeuk Kim <jaegeuk@kernel.org>2018-12-26 15:16:55 -0800
commit9249dded7b5cb539a8c8698b25d08a3c15261470 (patch)
tree9e6e1210428fdf50e5ad531931af18af1e2d51ca /fs/f2fs
parente4589fa545e0020dbbc3c9bde35f35f949901392 (diff)
downloadlwn-9249dded7b5cb539a8c8698b25d08a3c15261470.tar.gz
lwn-9249dded7b5cb539a8c8698b25d08a3c15261470.zip
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 <sunqiuyang@huawei.com> Reviewed-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs')
-rw-r--r--fs/f2fs/segment.c2
1 files changed, 1 insertions, 1 deletions
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;