diff options
| author | Filipe Manana <fdmanana@suse.com> | 2026-04-15 15:16:28 +0100 |
|---|---|---|
| committer | David Sterba <dsterba@suse.com> | 2026-06-08 15:53:29 +0200 |
| commit | 4b01341133e5bd304b22ff0db4a532e1c49bf2ac (patch) | |
| tree | 95c31b1a00fb817fce7d2d3df42944a1b8df962f | |
| parent | 5580c972e50d1c694cf9c399e9e25ec3145c9cd2 (diff) | |
| download | lwn-4b01341133e5bd304b22ff0db4a532e1c49bf2ac.tar.gz lwn-4b01341133e5bd304b22ff0db4a532e1c49bf2ac.zip | |
btrfs: remove unnecessary ctl argument from write_cache_extent_entries()
There is no need to pass the free space control structure as an argument
because we can grab it from the given block group.
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
| -rw-r--r-- | fs/btrfs/free-space-cache.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/btrfs/free-space-cache.c b/fs/btrfs/free-space-cache.c index bb4e10e3e248..2354cb6fce36 100644 --- a/fs/btrfs/free-space-cache.c +++ b/fs/btrfs/free-space-cache.c @@ -1064,12 +1064,12 @@ out: static noinline_for_stack int write_cache_extent_entries(struct btrfs_io_ctl *io_ctl, - struct btrfs_free_space_ctl *ctl, struct btrfs_block_group *block_group, int *entries, int *bitmaps, struct list_head *bitmap_list) { int ret; + struct btrfs_free_space_ctl *ctl = block_group->free_space_ctl; struct btrfs_free_cluster *cluster = NULL; struct btrfs_free_cluster *cluster_locked = NULL; struct rb_node *node = rb_first(&ctl->free_space_offset); @@ -1412,8 +1412,7 @@ static int __btrfs_write_out_cache(struct inode *inode, mutex_lock(&ctl->cache_writeout_mutex); /* Write out the extent entries in the free space cache */ spin_lock(&ctl->tree_lock); - ret = write_cache_extent_entries(io_ctl, ctl, - block_group, &entries, &bitmaps, + ret = write_cache_extent_entries(io_ctl, block_group, &entries, &bitmaps, &bitmap_list); if (ret) goto out_nospc_locked; |
