]> www.infradead.org Git - users/jedix/linux-maple.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)
committerChris Mason <chris.mason@oracle.com>
Wed, 16 Nov 2011 02:20:12 +0000 (21:20 -0500)
commit3bbd07e5a61096d265e95cf6e39df4548ab8122b
tree4b9f0eae611277054563c86fd0f3ba171b41537f
parentdc9ad5c12ef8900b4a7d5c33c4a845f2441365db
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>
(cherry picked from commit dba68306f3fae681b1005137f130f5bcfdfed34a)
fs/btrfs/ctree.h
fs/btrfs/inode.c
fs/btrfs/transaction.c