diff --git a/fs/f2fs/segment.h b/fs/f2fs/segment.h index d12d9cd99f91..9342b973da65 100644 --- a/fs/f2fs/segment.h +++ b/fs/f2fs/segment.h @@ -730,7 +730,7 @@ static inline block_t sum_blk_addr(struct f2fs_sb_info *sbi, int base, int type) static inline bool no_fggc_candidate(struct f2fs_sb_info *sbi, unsigned int secno) { - if (get_valid_blocks(sbi, GET_SEG_FROM_SEC(sbi, secno), true) >= + if (get_valid_blocks(sbi, GET_SEG_FROM_SEC(sbi, secno), true) > sbi->fggc_threshold) return true; return false;