Message ID | 20211110064217.98007-1-l@damenly.su (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | btrfs: remove unused parameter fs_devices from btrfs_init_workqueues | expand |
On 10/11/21 2:42 pm, Su Yue wrote: > Since commit ba8a9d079543 ("Btrfs: delete the entire async bio submission > framework") removed submit workqueues, the parameter fs_devices is not used > anymore. > > So remove the parameter, no functional changes. > > Signed-off-by: Su Yue <l@damenly.su> Looks good Reviewed-by: Anand Jain <anand.jain@orale.com>
On Wed, Nov 10, 2021 at 02:42:17PM +0800, Su Yue wrote: > Since commit ba8a9d079543 ("Btrfs: delete the entire async bio submission > framework") removed submit workqueues, the parameter fs_devices is not used > anymore. > > So remove the parameter, no functional changes. > > Signed-off-by: Su Yue <l@damenly.su> Added to misc-next, thanks.
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c index 847aabb30676..366b2f47f94b 100644 --- a/fs/btrfs/disk-io.c +++ b/fs/btrfs/disk-io.c @@ -2283,8 +2283,7 @@ static void btrfs_init_qgroup(struct btrfs_fs_info *fs_info) mutex_init(&fs_info->qgroup_rescan_lock); } -static int btrfs_init_workqueues(struct btrfs_fs_info *fs_info, - struct btrfs_fs_devices *fs_devices) +static int btrfs_init_workqueues(struct btrfs_fs_info *fs_info) { u32 max_active = fs_info->thread_pool_size; unsigned int flags = WQ_MEM_RECLAIM | WQ_FREEZABLE | WQ_UNBOUND; @@ -3415,7 +3414,7 @@ int __cold open_ctree(struct super_block *sb, struct btrfs_fs_devices *fs_device fs_info->subpage_info = subpage_info; } - ret = btrfs_init_workqueues(fs_info, fs_devices); + ret = btrfs_init_workqueues(fs_info); if (ret) { err = ret; goto fail_sb_buffer;
Since commit ba8a9d079543 ("Btrfs: delete the entire async bio submission framework") removed submit workqueues, the parameter fs_devices is not used anymore. So remove the parameter, no functional changes. Signed-off-by: Su Yue <l@damenly.su> --- fs/btrfs/disk-io.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)