Patch "f2fs: fix to use WHINT_MODE" has been added to the 5.15-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 to use WHINT_MODE

to the 5.15-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-to-use-whint_mode.patch
and it can be found in the queue-5.15 subdirectory.

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



commit a0a0698139a7413c4652d9a0657a1321f96eeb0b
Author: Keoseong Park <keosung.park@xxxxxxxxxxx>
Date:   Mon Sep 27 15:06:48 2021 +0900

    f2fs: fix to use WHINT_MODE
    
    [ Upstream commit 011e0868e0cf1237675b22e36fffa958fb08f46e ]
    
    Since active_logs can be set to 2 or 4 or NR_CURSEG_PERSIST_TYPE(6),
    it cannot be set to NR_CURSEG_TYPE(8).
    That is, whint_mode is always off.
    
    Therefore, the condition is changed from NR_CURSEG_TYPE to NR_CURSEG_PERSIST_TYPE.
    
    Cc: Chao Yu <chao@xxxxxxxxxx>
    Fixes: d0b9e42ab615 (f2fs: introduce inmem curseg)
    Reported-by: tanghuan <tanghuan@xxxxxxxx>
    Signed-off-by: Keoseong Park <keosung.park@xxxxxxxxxxx>
    Signed-off-by: Fengnan Chang <changfengnan@xxxxxxxx>
    Reviewed-by: Chao Yu <chao@xxxxxxxxxx>
    Signed-off-by: Jaegeuk Kim <jaegeuk@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c
index dbe040b66802c..4d24146b4f471 100644
--- a/fs/f2fs/super.c
+++ b/fs/f2fs/super.c
@@ -1292,7 +1292,7 @@ static int parse_options(struct super_block *sb, char *options, bool is_remount)
 	/* Not pass down write hints if the number of active logs is lesser
 	 * than NR_CURSEG_PERSIST_TYPE.
 	 */
-	if (F2FS_OPTION(sbi).active_logs != NR_CURSEG_TYPE)
+	if (F2FS_OPTION(sbi).active_logs != NR_CURSEG_PERSIST_TYPE)
 		F2FS_OPTION(sbi).whint_mode = WHINT_MODE_OFF;
 
 	if (f2fs_sb_has_readonly(sbi) && !f2fs_readonly(sbi->sb)) {



[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