Skip to content

Commit 39f71b7

Browse files
gdhe55555Jaegeuk Kim
authored andcommitted
f2fs: fix a wrong condition in __submit_bio
We should use !F2FS_IO_ALIGNED() to check and submit_io directly. Fixes: 8223ecc ("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>
1 parent 2e0cd47 commit 39f71b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/f2fs/data.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ static inline void __submit_bio(struct f2fs_sb_info *sbi,
470470
if (f2fs_lfs_mode(sbi) && current->plug)
471471
blk_finish_plug(current->plug);
472472

473-
if (F2FS_IO_ALIGNED(sbi))
473+
if (!F2FS_IO_ALIGNED(sbi))
474474
goto submit_io;
475475

476476
start = bio->bi_iter.bi_size >> F2FS_BLKSIZE_BITS;

0 commit comments

Comments
 (0)