diff options
author | Josef Bacik <josef@redhat.com> | 2011-08-04 15:34:57 -0400 |
---|---|---|
committer | Josef Bacik <josef@redhat.com> | 2011-10-19 15:12:32 -0400 |
commit | dba68306f3fae681b1005137f130f5bcfdfed34a (patch) | |
tree | eb19fa46bc8f7130fd68393420255876cc8f73fb /fs/btrfs/ctree.h | |
parent | 7709cde33f12db71efb377fae4ae7aab6c94ebc6 (diff) |
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>
Diffstat (limited to 'fs/btrfs/ctree.h')
-rw-r--r-- | fs/btrfs/ctree.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h index 332cbdc86ad4..4ef777e85c89 100644 --- a/fs/btrfs/ctree.h +++ b/fs/btrfs/ctree.h | |||
@@ -2577,11 +2577,6 @@ int btrfs_update_inode(struct btrfs_trans_handle *trans, | |||
2577 | int btrfs_orphan_add(struct btrfs_trans_handle *trans, struct inode *inode); | 2577 | int btrfs_orphan_add(struct btrfs_trans_handle *trans, struct inode *inode); |
2578 | int btrfs_orphan_del(struct btrfs_trans_handle *trans, struct inode *inode); | 2578 | int btrfs_orphan_del(struct btrfs_trans_handle *trans, struct inode *inode); |
2579 | int btrfs_orphan_cleanup(struct btrfs_root *root); | 2579 | int btrfs_orphan_cleanup(struct btrfs_root *root); |
2580 | void btrfs_orphan_pre_snapshot(struct btrfs_trans_handle *trans, | ||
2581 | struct btrfs_pending_snapshot *pending, | ||
2582 | u64 *bytes_to_reserve); | ||
2583 | void btrfs_orphan_post_snapshot(struct btrfs_trans_handle *trans, | ||
2584 | struct btrfs_pending_snapshot *pending); | ||
2585 | void btrfs_orphan_commit_root(struct btrfs_trans_handle *trans, | 2580 | void btrfs_orphan_commit_root(struct btrfs_trans_handle *trans, |
2586 | struct btrfs_root *root); | 2581 | struct btrfs_root *root); |
2587 | int btrfs_cont_expand(struct inode *inode, loff_t oldsize, loff_t size); | 2582 | int btrfs_cont_expand(struct inode *inode, loff_t oldsize, loff_t size); |