]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: kill the orphan space calculation for snapshots
authorJosef Bacik <josef@redhat.com>
Thu, 4 Aug 2011 19:34:57 +0000 (15:34 -0400)
committerJosef Bacik <josef@redhat.com>
Wed, 19 Oct 2011 19:12:32 +0000 (15:12 -0400)
commit3974cbe7729dd5ca62995f7cf4c79668a0f3e969
treeeb19fa46bc8f7130fd68393420255876cc8f73fb
parent54723f2211d73dd7cbbbd9107c0a96ae1ffc2cdf
Btrfs: kill the orphan space calculation for snapshots

This patch kills off the calculation for the amount of space needed for the
orphan operations during a snapshot.  The thing is we only do snapshots on
commit, so any space that is in the block_rsv->freed[] isn't going to be in the
new snapshot anyway, so there isn't any reason to require that space to be
reserved for the snapshot to occur.  Thanks,

Signed-off-by: Josef Bacik <josef@redhat.com>
fs/btrfs/ctree.h
fs/btrfs/inode.c
fs/btrfs/transaction.c