]> git.hungrycats.org Git - linux/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)
committerZygo Blaxell <zblaxell@thirteen.furryterror.org>
Wed, 17 Aug 2016 02:10:41 +0000 (22:10 -0400)
commitc6c4868699a98dc0b6e3b6ba495939f88240638b
treecf4ece8e2306b3b72b7b6dea1037191b536af5eb
parent8d772e1197df3f7e1b2d46170f70066101afa887
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>
(cherry picked from commit 40acc3eededbe16f6104a32776e541f223d00b5e)
fs/btrfs/extent-tree.c