Commit 2bac0763 authored by Jaegeuk Kim's avatar Jaegeuk Kim
Browse files

f2fs: skip GC when section is full



This fixes skipping GC when segment is full in large section.

Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
parent 8c7b9ac1
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1025,8 +1025,8 @@ next_step:
		 * race condition along with SSR block allocation.
		 */
		if ((gc_type == BG_GC && has_not_enough_free_secs(sbi, 0, 0)) ||
				get_valid_blocks(sbi, segno, false) ==
							sbi->blocks_per_seg)
				get_valid_blocks(sbi, segno, true) ==
							BLKS_PER_SEC(sbi))
			return submitted;

		if (check_valid_map(sbi, segno, off) == 0)