]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - fs/ext4/mballoc.c
ext4: Don't overwrite allocation_context ac_status
[mirror_ubuntu-bionic-kernel.git] / fs / ext4 / mballoc.c
index 48d606cd740f818248eb42db22b2467113810a97..6dea637b020aeb0f0fa7049ca85be0f6cad7e3ff 100644 (file)
@@ -1326,6 +1326,8 @@ static void ext4_mb_check_limits(struct ext4_allocation_context *ac,
        struct ext4_free_extent ex;
        int max;
 
+       if (ac->ac_status == AC_STATUS_FOUND)
+               return;
        /*
         * We don't want to scan for a whole year
         */