Patch "f2fs: don't set GC_FAILURE_PIN for background GC" has been added to the 5.10-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: don't set GC_FAILURE_PIN for background GC

to the 5.10-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-don-t-set-gc_failure_pin-for-background-gc.patch
and it can be found in the queue-5.10 subdirectory.

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



commit 776a88de5a5ed93b884c68db0d4e47b084a7cca2
Author: Chao Yu <chao@xxxxxxxxxx>
Date:   Sun Mar 20 23:11:18 2022 +0800

    f2fs: don't set GC_FAILURE_PIN for background GC
    
    [ Upstream commit 642c0969916eaa4878cb74f36752108e590b0389 ]
    
    So that it can reduce the possibility that file be unpinned forcely by
    foreground GC due to .i_gc_failures[GC_FAILURE_PIN] exceeds threshold.
    
    Signed-off-by: Chao Yu <chao.yu@xxxxxxxx>
    Signed-off-by: Jaegeuk Kim <jaegeuk@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/fs/f2fs/gc.c b/fs/f2fs/gc.c
index 24e93fb254c5..22bb5e07f656 100644
--- a/fs/f2fs/gc.c
+++ b/fs/f2fs/gc.c
@@ -1158,7 +1158,8 @@ static int move_data_block(struct inode *inode, block_t bidx,
 	}
 
 	if (f2fs_is_pinned_file(inode)) {
-		f2fs_pin_file_control(inode, true);
+		if (gc_type == FG_GC)
+			f2fs_pin_file_control(inode, true);
 		err = -EAGAIN;
 		goto out;
 	}



[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