]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: use the transactions block_rsv for the csum root
authorJosef Bacik <josef@redhat.com>
Tue, 30 Aug 2011 15:31:29 +0000 (11:31 -0400)
committerJosef Bacik <josef@redhat.com>
Wed, 19 Oct 2011 19:12:42 +0000 (15:12 -0400)
commit99aae7ef5dfd7b9f4817a9477cf337c641d53f3b
treed1510daf164457d433b5f6219e5d48f2f6720a31
parente2009920793d1f32a191c0e8bacad5a11a2ac529
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: Josef Bacik <josef@redhat.com>
fs/btrfs/extent-tree.c
fs/btrfs/transaction.c