btrfs: quota: Set rescan progress to (u64)-1 if we hit last leaf
[sfrench/cifs-2.6.git] / fs / btrfs / qgroup.c
index 1874a6d2e6f5422c809759d0ca29e9bb973826bb..99f2b9ce0f15ce9b3d3ff4ad6aa441bf0b784cc4 100644 (file)
@@ -2680,8 +2680,10 @@ out:
                free_extent_buffer(scratch_leaf);
        }
 
-       if (done && !ret)
+       if (done && !ret) {
                ret = 1;
+               fs_info->qgroup_rescan_progress.objectid = (u64)-1;
+       }
        return ret;
 }