Skip to content
Commit 4c13d758 authored by Josef Bacik's avatar Josef Bacik
Browse files

Btrfs: use the transactions block_rsv for the csum root



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>
parent c09544e0
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