summaryrefslogtreecommitdiff
path: root/fs/nfs
diff options
context:
space:
mode:
authorQu Wenruo <wqu@suse.com>2022-08-24 04:14:07 +0300
committerDavid Sterba <dsterba@suse.com>2022-09-26 13:28:01 +0300
commite562a8bdf652b010ce2525bcf15d145c9d3932bf (patch)
treebee0e81ff35196ee2171835c2ef5fb2e414d68f6 /fs/nfs
parente71564c0438a1c0cffc5c8eb302ec5d849103b08 (diff)
downloadlinux-e562a8bdf652b010ce2525bcf15d145c9d3932bf.tar.xz
btrfs: introduce BTRFS_QGROUP_RUNTIME_FLAG_CANCEL_RESCAN
Introduce a new runtime flag, BTRFS_QGROUP_RUNTIME_FLAG_CANCEL_RESCAN, which will inform qgroup rescan to cancel its work asynchronously. This is to address the window when an operation makes qgroup numbers inconsistent (like qgroup inheriting) while a qgroup rescan is running. In that case, qgroup inconsistent flag will be cleared when qgroup rescan finishes. But we changed the ownership of some extents, which means the rescan is already meaningless, and the qgroup inconsistent flag should not be cleared. With the new flag, each time we set INCONSISTENT flag, we also set this new flag to inform any running qgroup rescan to exit immediately, and leaving the INCONSISTENT flag there. The new runtime flag can only be cleared when a new rescan is started. Signed-off-by: Qu Wenruo <wqu@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/nfs')
0 files changed, 0 insertions, 0 deletions