]> 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)
commit195bc40fe3ea12fe552ecb8e81068fc6c751b9ad
treeeb19fa46bc8f7130fd68393420255876cc8f73fb
parente5f0cea7a2c541614b68490ef4aa3a633c976b68
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