diff options
author | Josef Bacik <josef@toxicpanda.com> | 2021-06-22 15:52:01 +0300 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2021-06-22 14:55:25 +0200 |
commit | 138a12d865749e28b39300b8a07337811253939b (patch) | |
tree | b274751bff1d1ebc75ced9cbf6528b51f6852ec1 /fs/btrfs/disk-io.c | |
parent | 3ffad6961db6c44b324e4ee5a8025e5f63c657d7 (diff) | |
download | linux-stable-138a12d865749e28b39300b8a07337811253939b.tar.gz linux-stable-138a12d865749e28b39300b8a07337811253939b.tar.bz2 linux-stable-138a12d865749e28b39300b8a07337811253939b.zip |
btrfs: rip out btrfs_space_info::total_bytes_pinned
We used this in may_commit_transaction() in order to determine if we
needed to commit the transaction. However we no longer have that logic
and thus have no use of this counter anymore, so delete it.
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/disk-io.c')
-rw-r--r-- | fs/btrfs/disk-io.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c index 7cc32e2813be..b117dd3b8172 100644 --- a/fs/btrfs/disk-io.c +++ b/fs/btrfs/disk-io.c @@ -4680,9 +4680,6 @@ static int btrfs_destroy_delayed_refs(struct btrfs_transaction *trans, cache->space_info->bytes_reserved -= head->num_bytes; spin_unlock(&cache->lock); spin_unlock(&cache->space_info->lock); - percpu_counter_add_batch( - &cache->space_info->total_bytes_pinned, - head->num_bytes, BTRFS_TOTAL_BYTES_PINNED_BATCH); btrfs_put_block_group(cache); |