diff options
author | Jaegeuk Kim <jaegeuk@kernel.org> | 2020-02-09 13:23:28 -0800 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2020-03-19 11:41:26 -0700 |
commit | 2bac07635ddf9ed59268e61e415d8de9c5eaded7 (patch) | |
tree | 961caf21c6a2132d8b40e82b86d5510d242c0bfc /fs/f2fs | |
parent | 8c7b9ac129d0962faa6f8b092424eab3427cc364 (diff) |
f2fs: skip GC when section is full
This fixes skipping GC when segment is full in large section.
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs')
-rw-r--r-- | fs/f2fs/gc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/f2fs/gc.c b/fs/f2fs/gc.c index bb0b6435dcf7..0dfdec4926e4 100644 --- a/fs/f2fs/gc.c +++ b/fs/f2fs/gc.c @@ -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) |