f2fs: fix last_lblock check in check_swap_activate_fast
authorhuangjianan@oppo.com <huangjianan@oppo.com>
Sat, 27 Feb 2021 12:02:30 +0000 (20:02 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Fri, 12 Mar 2021 21:16:43 +0000 (13:16 -0800)
commit1da66103837077df70ddf7a49c46dfd025001a60
tree9a87e4584fe7dd9f8a5f150628647ab0c61c671b
parentebc29b62a166e9116cd8159e9798044d02130279
f2fs: fix last_lblock check in check_swap_activate_fast

Because page_no < sis->max guarantees that the while loop break out
normally, the wrong check contidion here doesn't cause a problem.

Signed-off-by: Huang Jianan <huangjianan@oppo.com>
Signed-off-by: Guo Weichao <guoweichao@oppo.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/data.c