• Boris Burkov's avatar
    btrfs: create qgroup earlier in snapshot creation · 6ed05643
    Boris Burkov authored
    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>
    6ed05643
qgroup.c 121 KB