OSDN Git Service

ext4: remove ac->ac_found > sbi->s_mb_min_to_scan dead check in ext4_mb_check_limits
[tomoyo/tomoyo-test1.git] / fs / ext4 / mballoc.c
index 591bd8e..eeafa1b 100644 (file)
@@ -2039,8 +2039,7 @@ static void ext4_mb_check_limits(struct ext4_allocation_context *ac,
        if (bex->fe_len < gex->fe_len)
                return;
 
-       if ((finish_group || ac->ac_found > sbi->s_mb_min_to_scan)
-                       && bex->fe_group == e4b->bd_group) {
+       if (finish_group && bex->fe_group == e4b->bd_group) {
                /* recheck chunk's availability - we don't know
                 * when it was found (within this lock-unlock
                 * period or not) */