diff options
author | Filipe Manana <fdmanana@suse.com> | 2024-09-04 17:03:43 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2024-11-11 14:34:17 +0100 |
commit | 70a5f9e266cf1f544f33ce56f1eee634d79f3030 (patch) | |
tree | 6ead3fd624eff8a599d533b024e960d787ef4a09 /fs/btrfs/disk-io.c | |
parent | 1020443840569535f6025a855958f07ea3eebf71 (diff) | |
download | linux-70a5f9e266cf1f544f33ce56f1eee634d79f3030.tar.gz linux-70a5f9e266cf1f544f33ce56f1eee634d79f3030.tar.bz2 linux-70a5f9e266cf1f544f33ce56f1eee634d79f3030.zip |
btrfs: simplify tracking progress for the extent map shrinker
Now that the extent map shrinker can only be run by a single task (as a
work queue item) there is no need to keep the progress of the shrinker
protected by a spinlock and passing the progress to trace events as
parameters. So remove the lock and simplify the arguments for the trace
events.
Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: Filipe Manana <fdmanana@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 | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c index 8ad625a8d9f9..0cbc31908264 100644 --- a/fs/btrfs/disk-io.c +++ b/fs/btrfs/disk-io.c @@ -2852,8 +2852,6 @@ static int init_mount_fs_info(struct btrfs_fs_info *fs_info, struct super_block if (ret) return ret; - spin_lock_init(&fs_info->extent_map_shrinker_lock); - ret = percpu_counter_init(&fs_info->dirty_metadata_bytes, 0, GFP_KERNEL); if (ret) return ret; |