]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
btrfs: remove unused parameter from btrfs_subvolume_release_metadata
authorDavid Sterba <dsterba@suse.com>
Fri, 10 Feb 2017 18:18:18 +0000 (19:18 +0100)
committerDavid Sterba <dsterba@suse.com>
Fri, 17 Feb 2017 11:03:52 +0000 (12:03 +0100)
Unused since qgroup refactoring that split data and metadata accounting,
the btrfs_qgroup_free helper.

Reviewed-by: Liu Bo <bo.li.liu@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/ctree.h
fs/btrfs/extent-tree.c
fs/btrfs/ioctl.c

index 1692ebb05955c099b8c5d2bfd7e4a638c613677e..0f5b85772023e5cab61f77b349b8ece24aa0b286 100644 (file)
@@ -2703,8 +2703,7 @@ int btrfs_subvolume_reserve_metadata(struct btrfs_root *root,
                                     int nitems,
                                     u64 *qgroup_reserved, bool use_global_rsv);
 void btrfs_subvolume_release_metadata(struct btrfs_fs_info *fs_info,
-                                     struct btrfs_block_rsv *rsv,
-                                     u64 qgroup_reserved);
+                                     struct btrfs_block_rsv *rsv);
 int btrfs_delalloc_reserve_metadata(struct inode *inode, u64 num_bytes);
 void btrfs_delalloc_release_metadata(struct inode *inode, u64 num_bytes);
 int btrfs_delalloc_reserve_space(struct inode *inode, u64 start, u64 len);
index fcb134f46fdb245236691c6a78e892573dfcb03b..cfa64215b67a28b23a0db3023a4d5f0edfaf8ee4 100644 (file)
@@ -5826,8 +5826,7 @@ int btrfs_subvolume_reserve_metadata(struct btrfs_root *root,
 }
 
 void btrfs_subvolume_release_metadata(struct btrfs_fs_info *fs_info,
-                                     struct btrfs_block_rsv *rsv,
-                                     u64 qgroup_reserved)
+                                     struct btrfs_block_rsv *rsv)
 {
        btrfs_block_rsv_release(fs_info, rsv, (u64)-1);
 }
index f65ace58dd2cc74c05e445017b5e141d1a770b67..2e75262fc1245c0ab2797cb1cd8e9ec3ab4e3e39 100644 (file)
@@ -487,8 +487,7 @@ static noinline int create_subvol(struct inode *dir,
        trans = btrfs_start_transaction(root, 0);
        if (IS_ERR(trans)) {
                ret = PTR_ERR(trans);
-               btrfs_subvolume_release_metadata(fs_info, &block_rsv,
-                                                qgroup_reserved);
+               btrfs_subvolume_release_metadata(fs_info, &block_rsv);
                goto fail_free;
        }
        trans->block_rsv = &block_rsv;
@@ -613,7 +612,7 @@ fail:
        kfree(root_item);
        trans->block_rsv = NULL;
        trans->bytes_reserved = 0;
-       btrfs_subvolume_release_metadata(fs_info, &block_rsv, qgroup_reserved);
+       btrfs_subvolume_release_metadata(fs_info, &block_rsv);
 
        if (async_transid) {
                *async_transid = trans->transid;
@@ -753,9 +752,7 @@ static int create_snapshot(struct btrfs_root *root, struct inode *dir,
        d_instantiate(dentry, inode);
        ret = 0;
 fail:
-       btrfs_subvolume_release_metadata(fs_info,
-                                        &pending_snapshot->block_rsv,
-                                        pending_snapshot->qgroup_reserved);
+       btrfs_subvolume_release_metadata(fs_info, &pending_snapshot->block_rsv);
 dec_and_free:
        if (atomic_dec_and_test(&root->will_be_snapshoted))
                wake_up_atomic_t(&root->will_be_snapshoted);
@@ -2555,7 +2552,7 @@ out_end_trans:
                err = ret;
        inode->i_flags |= S_DEAD;
 out_release:
-       btrfs_subvolume_release_metadata(fs_info, &block_rsv, qgroup_reserved);
+       btrfs_subvolume_release_metadata(fs_info, &block_rsv);
 out_up_write:
        up_write(&fs_info->subvol_sem);
        if (err) {