]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5f9071fe3f211dff155e1d74c785aeff251bf74c
tree9a87e4584fe7dd9f8a5f150628647ab0c61c671b
parent9ba59eb37e3629be3fce7c0c54d01d910d382da5
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