• Josef Bacik's avatar
    Btrfs: use the transactions block_rsv for the csum root · 4c13d758
    Josef Bacik authored
    The alloc warnings everybody has been seeing is because we have been reserving
    space for csums, but we weren't actually using that space.  So make
    get_block_rsv() return the trans->block_rsv if we're modifying the csum root.
    Also set the trans->block_rsv to NULL so that if we modify the csum root when
    running delayed ref's that comes out of the global reserve like it's supposed
    to.  With this patch I'm not seeing those alloc warnings anymore.  Thanks,
    Signed-off-by: default avatarJosef Bacik <josef@redhat.com>
    4c13d758
extent-tree.c 196 KB