f2fs: fix a wrong condition in __submit_bio
authorDehe Gu <gudehe@huawei.com>
Tue, 2 Feb 2021 09:39:22 +0000 (17:39 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 4 Mar 2021 09:26:24 +0000 (10:26 +0100)
commit76faeef2f45e82e9f477898f7f43cc94d9255116
tree4aba55d19f429f9b1eb3a9fb58c5f2aa982c9f00
parent721c986986d246075bc75425d0030bba8699dbd3
f2fs: fix a wrong condition in __submit_bio

[ Upstream commit 39f71b7e40e21805d6b15fc7750bdd9cab6a5010 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/f2fs/data.c