]> git.karo-electronics.de Git - karo-tx-linux.git/commit
Btrfs: always use trans->block_rsv for orphans
authorJosef Bacik <jbacik@fb.com>
Fri, 27 May 2016 17:01:08 +0000 (13:01 -0400)
committerDavid Sterba <dsterba@suse.com>
Thu, 7 Jul 2016 16:45:53 +0000 (18:45 +0200)
commit40acc3eededbe16f6104a32776e541f223d00b5e
treeab03dacb02052d46a6f33ca1ced68cc9686bde42
parentae2e4728816510ae4e8ed2b732b34ea0aba05a34
Btrfs: always use trans->block_rsv for orphans

This is the case all the time anyway except for relocation which could be doing
a reloc root for a non ref counted root, in which case we'd end up with some
random block rsv rather than the one we have our reservation in.  If there isn't
enough space in the block rsv we are trying to steal from we'll BUG() because we
expect there to be space for the orphan to make its reservation.  Thanks,

Signed-off-by: Josef Bacik <jbacik@fb.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/extent-tree.c