mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
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 <[email protected]> Reviewed-by: Chao Yu <[email protected]> Signed-off-by: Jaegeuk Kim <[email protected]>
This commit is contained in:
parent
e4589fa545
commit
9249dded7b
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue