diff options
author | David Sterba <dsterba@suse.com> | 2019-01-17 11:15:18 -0500 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2019-02-25 08:13:24 -0500 |
commit | ce3ded1061c8c610c304ac797c3b4680e5b8a5f1 (patch) | |
tree | 849fda28e2f1364b44c049962bec852496a0db5b /fs/btrfs/async-thread.c | |
parent | 09ba3bc9dd150457c506e4661380a6183af651c1 (diff) |
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 <nborisov@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/async-thread.c')
-rw-r--r-- | fs/btrfs/async-thread.c | 10 |
1 files changed, 4 insertions, 6 deletions
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, | |||
139 | } | 139 | } |
140 | 140 | ||
141 | if (flags & WQ_HIGHPRI) | 141 | if (flags & WQ_HIGHPRI) |
142 | ret->normal_wq = alloc_workqueue("%s-%s-high", flags, | 142 | ret->normal_wq = alloc_workqueue("btrfs-%s-high", flags, |
143 | ret->current_active, "btrfs", | 143 | ret->current_active, name); |
144 | name); | ||
145 | else | 144 | else |
146 | ret->normal_wq = alloc_workqueue("%s-%s", flags, | 145 | ret->normal_wq = alloc_workqueue("btrfs-%s", flags, |
147 | ret->current_active, "btrfs", | 146 | ret->current_active, name); |
148 | name); | ||
149 | if (!ret->normal_wq) { | 147 | if (!ret->normal_wq) { |
150 | kfree(ret); | 148 | kfree(ret); |
151 | return NULL; | 149 | return NULL; |