f2fs: fix a wrong condition in __submit_bio
authorDehe Gu <gudehe@huawei.com>
Tue, 2 Feb 2021 09:39:22 +0000 (17:39 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 2 Feb 2021 17:14:27 +0000 (09:14 -0800)
commit39f71b7e40e21805d6b15fc7750bdd9cab6a5010
treeb196f662a26b354de9f28893b7e437fc32ec25da
parent2e0cd472a0dd9b9a35699502570015af15d7c70f
f2fs: fix a wrong condition in __submit_bio

We should use !F2FS_IO_ALIGNED() to check and submit_io directly.

Fixes: 8223ecc456d0 ("f2fs: fix to add missing F2FS_IO_ALIGNED() condition")
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Dehe Gu <gudehe@huawei.com>
Signed-off-by: Ge Qiu <qiuge@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/data.c