From: David Sterba Date: Thu, 17 Jan 2019 16:15:18 +0000 (+0100) Subject: btrfs: simplify workqueue name when allocating X-Git-Tag: v5.1-rc1~138^2~61 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=ce3ded1061c8c610c304ac797c3b4680e5b8a5f1;p=users%2Fjedix%2Flinux-maple.git btrfs: simplify workqueue name when allocating The workqueue name is constructed from a format string but the prefix does not need to be set by %s. Reviewed-by: Nikolay Borisov Signed-off-by: David Sterba --- diff --git a/fs/btrfs/async-thread.c b/fs/btrfs/async-thread.c index d522494698fa..122cb97c7909 100644 --- a/fs/btrfs/async-thread.c +++ b/fs/btrfs/async-thread.c @@ -139,13 +139,11 @@ __btrfs_alloc_workqueue(struct btrfs_fs_info *fs_info, const char *name, } if (flags & WQ_HIGHPRI) - ret->normal_wq = alloc_workqueue("%s-%s-high", flags, - ret->current_active, "btrfs", - name); + ret->normal_wq = alloc_workqueue("btrfs-%s-high", flags, + ret->current_active, name); else - ret->normal_wq = alloc_workqueue("%s-%s", flags, - ret->current_active, "btrfs", - name); + ret->normal_wq = alloc_workqueue("btrfs-%s", flags, + ret->current_active, name); if (!ret->normal_wq) { kfree(ret); return NULL;