diff options
author | Josef Bacik <josef@toxicpanda.com> | 2019-08-22 21:11:02 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2019-09-09 14:59:18 +0200 |
commit | d05e46497f86175f85a4f0b9346cae2260e97c8d (patch) | |
tree | c1a072f79088e9f42f2b2e26c500fb9ee39b0c96 /fs/btrfs/block-rsv.c | |
parent | btrfs: remove orig_bytes from reserve_ticket (diff) | |
download | linux-d05e46497f86175f85a4f0b9346cae2260e97c8d.tar.xz linux-d05e46497f86175f85a4f0b9346cae2260e97c8d.zip |
btrfs: rename btrfs_space_info_add_old_bytes
This name doesn't really fit with how the space reservation stuff works
now, rename it to btrfs_space_info_free_bytes_may_use so it's clear what
the function is doing.
Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/block-rsv.c')
-rw-r--r-- | fs/btrfs/block-rsv.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/btrfs/block-rsv.c b/fs/btrfs/block-rsv.c index c808f93b743a..01b1ce2240bc 100644 --- a/fs/btrfs/block-rsv.c +++ b/fs/btrfs/block-rsv.c @@ -54,8 +54,9 @@ static u64 block_rsv_release_bytes(struct btrfs_fs_info *fs_info, spin_unlock(&dest->lock); } if (num_bytes) - btrfs_space_info_add_old_bytes(fs_info, space_info, - num_bytes); + btrfs_space_info_free_bytes_may_use(fs_info, + space_info, + num_bytes); } if (qgroup_to_release_ret) *qgroup_to_release_ret = qgroup_to_release; |