Skip to content
Commit 6ed05643 authored by Boris Burkov's avatar Boris Burkov Committed by David Sterba
Browse files

btrfs: create qgroup earlier in snapshot creation



Pull creating the qgroup earlier in the snapshot. This allows simple
quotas qgroups to see all the metadata writes related to the snapshot
being created and to be born with the root node accounted.

Note this has an impact on transaction commit where the qgroup creation
can do a lot of work, allocate memory and take locks. The change is done
for correctness, potential performance issues will be fixed in the
future.

Signed-off-by: default avatarBoris Burkov <boris@bur.io>
[ add note ]
Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent af0e2aab
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment