diff options
author | Qu Wenruo <[email protected]> | 2018-06-27 18:19:55 +0800 |
---|---|---|
committer | David Sterba <[email protected]> | 2018-06-28 11:30:48 +0200 |
commit | 6f7de19ed3d4d3526ca5eca428009f97cf969c2f (patch) | |
tree | ce6036899463f3ffb5d45a9f925e5bfcc71cc8c1 /lib/test-string_helpers.c | |
parent | c5b4a50b74018b3677098151ec5f4fce07d5e6a0 (diff) |
btrfs: quota: Set rescan progress to (u64)-1 if we hit last leaf
Commit ff3d27a048d9 ("btrfs: qgroup: Finish rescan when hit the last leaf
of extent tree") added a new exit for rescan finish.
However after finishing quota rescan, we set
fs_info->qgroup_rescan_progress to (u64)-1 before we exit through the
original exit path.
While we missed that assignment of (u64)-1 in the new exit path.
The end result is, the quota status item doesn't have the same value.
(-1 vs the last bytenr + 1)
Although it doesn't affect quota accounting, it's still better to keep
the original behavior.
Reported-by: Misono Tomohiro <[email protected]>
Fixes: ff3d27a048d9 ("btrfs: qgroup: Finish rescan when hit the last leaf of extent tree")
Signed-off-by: Qu Wenruo <[email protected]>
Reviewed-by: Misono Tomohiro <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'lib/test-string_helpers.c')
0 files changed, 0 insertions, 0 deletions