Patch "f2fs: fix a wrong condition in __submit_bio" has been added to the 5.4-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    f2fs: fix a wrong condition in __submit_bio

to the 5.4-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     f2fs-fix-a-wrong-condition-in-__submit_bio.patch
and it can be found in the queue-5.4 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 316f49b6d866045dae9f8cca061eee9d62dae932
Author: Dehe Gu <gudehe@xxxxxxxxxx>
Date:   Tue Feb 2 17:39:22 2021 +0800

    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@xxxxxxxxxx>
    Signed-off-by: Dehe Gu <gudehe@xxxxxxxxxx>
    Signed-off-by: Ge Qiu <qiuge@xxxxxxxxxx>
    Signed-off-by: Jaegeuk Kim <jaegeuk@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c
index 68be334afc286..64ee2a064e339 100644
--- a/fs/f2fs/data.c
+++ b/fs/f2fs/data.c
@@ -318,7 +318,7 @@ static inline void __submit_bio(struct f2fs_sb_info *sbi,
 		if (test_opt(sbi, LFS) && 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;



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux