f2fs: init dirty_secmap incorrectly
PATCH 1/1 f2fs: init dirty_secmap incorrectly
section is dirty, but dirty_secmap may not set
Reported-by Jia Yang <[email protected]>
Fixes da52f8ade40b ("f2fs: get the right gc victim section when section
has several segments")
Signed-off-by Jack Qiu <[email protected]>
--- fs/f2fs/segment.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
fs/f2fs/segment.c +1 -1
@@ -4544,7 +4544,7 @@ static void init_dirty_segmap(struct f2fs_sb_info *sbi)return ;mutex_lock (&dirty_i->seglist_lock); -for (segno =0 ; segno <MAIN_SECS (sbi); segno += blks_per_sec) { +for (segno =0 ; segno <MAIN_SEGS (sbi); segno += sbi->segs_per_sec) { valid_blocks =get_valid_blocks (sbi, segno, true); secno =GET_SEC_FROM_SEG (sbi, segno);
--
2.17.1
_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
Quoted 5 lines · Jack Qiu
section is dirty, but
dirty_secmapmay not setReported-by Jia Yang <[email protected]>Fixes da52f8ade40b ("f2fs: get the right gc victim section when sectionhas several segments")
It needs to Cc stable mailing list.
Quoted 2 lines
Signed-off-by Jack Qiu <[email protected]>
Reviewed-by Chao Yu <[email protected]>
Thanks
_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel