• Boris Burkov's avatar
    btrfs: new inline ref storing owning subvol of data extents · d9a620f7
    Boris Burkov authored
    In order to implement simple quota groups, we need to be able to
    associate a data extent with the subvolume that created it. Once you
    account for reflink, this information cannot be recovered without
    explicitly storing it. Options for storing it are:
    
    - a new key/item
    - a new extent inline ref item
    
    The former is backwards compatible, but wastes space, the latter is
    incompat, but is efficient in space and reuses the existing inline ref
    machinery, while only abusing it a tiny amount -- specifically, the new
    item is not a ref, per-se.
    Signed-off-by: default avatarBoris Burkov <boris@bur.io>
    Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
    d9a620f7
print-tree.c 13.6 KB