aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/cdx/controller/cdx_controller.c
diff options
context:
space:
mode:
authorQu Wenruo <[email protected]>2024-02-26 03:51:13 +0000
committerDavid Sterba <[email protected]>2024-03-05 16:13:24 +0000
commitb20fe56cd285dbbf64874ec9d1c81f8a8ac2f821 (patch)
tree89f2db4f6541c21f657e0a7a7681f8e84b6a8eb1 /drivers/cdx/controller/cdx_controller.c
parentbtrfs: qgroup: validate btrfs_qgroup_inherit parameter (diff)
downloadkernel-b20fe56cd285dbbf64874ec9d1c81f8a8ac2f821.tar.gz
kernel-b20fe56cd285dbbf64874ec9d1c81f8a8ac2f821.zip
btrfs: qgroup: allow quick inherit if snapshot is created and added to the same parent
Currently "btrfs subvolume snapshot -i <qgroupid>" would always mark the qgroup inconsistent. This can be annoying if the fs has a lot of snapshots, and needs qgroup to get the accounting for the amount of bytes it can free for each snapshot. Although we have the new simple quote as a solution, there is also a case where we can skip the full scan, if all the following conditions are met: - The source subvolume belongs to a higher level parent qgroup - The parent qgroup already owns all its bytes exclusively - The new snapshot is also added to the same parent qgroup In that case, we only need to add nodesize to the parent qgroup and avoid a full rescan. This patch would add the extra quick accounting update for such inherit. Signed-off-by: Qu Wenruo <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'drivers/cdx/controller/cdx_controller.c')
0 files changed, 0 insertions, 0 deletions