Commit 39f71b7e authored by Dehe Gu's avatar Dehe Gu Committed by Jaegeuk Kim

f2fs: fix a wrong condition in __submit_bio

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

Fixes: 8223ecc4 ("f2fs: fix to add missing F2FS_IO_ALIGNED() condition")
Reviewed-by: default avatarChao Yu <yuchao0@huawei.com>
Signed-off-by: default avatarDehe Gu <gudehe@huawei.com>
Signed-off-by: default avatarGe Qiu <qiuge@huawei.com>
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
parent 2e0cd472
......@@ -470,7 +470,7 @@ static inline void __submit_bio(struct f2fs_sb_info *sbi,
if (f2fs_lfs_mode(sbi) && current->plug)
blk_finish_plug(current->plug);
if (F2FS_IO_ALIGNED(sbi))
if (!F2FS_IO_ALIGNED(sbi))
goto submit_io;
start = bio->bi_iter.bi_size >> F2FS_BLKSIZE_BITS;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment