diff options
author | Josef Bacik <josef@toxicpanda.com> | 2019-06-19 21:11:59 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2019-07-04 17:26:17 +0200 |
commit | fb6dea26601b60e41d70c310537dd1e2617b25b6 (patch) | |
tree | 9437c0b0b8789280b85edf50af6969c4af47dd15 /fs/btrfs/extent-tree.c | |
parent | btrfs: migrate the delayed refs rsv code (diff) | |
download | linux-fb6dea26601b60e41d70c310537dd1e2617b25b6.tar.xz linux-fb6dea26601b60e41d70c310537dd1e2617b25b6.zip |
btrfs: migrate btrfs_trans_release_chunk_metadata
Move this into transaction.c with the rest of the transaction related
code.
Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/extent-tree.c')
-rw-r--r-- | fs/btrfs/extent-tree.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c index 413a80904673..1987daf8e439 100644 --- a/fs/btrfs/extent-tree.c +++ b/fs/btrfs/extent-tree.c @@ -4340,24 +4340,6 @@ static void btrfs_inode_rsv_release(struct btrfs_inode *inode, bool qgroup_free) } /* - * To be called after all the new block groups attached to the transaction - * handle have been created (btrfs_create_pending_block_groups()). - */ -void btrfs_trans_release_chunk_metadata(struct btrfs_trans_handle *trans) -{ - struct btrfs_fs_info *fs_info = trans->fs_info; - - if (!trans->chunk_bytes_reserved) - return; - - WARN_ON_ONCE(!list_empty(&trans->new_bgs)); - - btrfs_block_rsv_release(fs_info, &fs_info->chunk_block_rsv, - trans->chunk_bytes_reserved); - trans->chunk_bytes_reserved = 0; -} - -/* * btrfs_subvolume_reserve_metadata() - reserve space for subvolume operation * root: the root of the parent directory * rsv: block reservation |