]> git.baikalelectronics.ru Git - kernel.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)
commitc343aa532bbb6bcb7c27008dd6fc71ee4800c44b
treeab03dacb02052d46a6f33ca1ced68cc9686bde42
parent318d1daf05d0a8e43f3a2b27b8c63c16b3fdd2fc
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