]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
btrfs: simplify workqueue name when allocating
authorDavid Sterba <dsterba@suse.com>
Thu, 17 Jan 2019 16:15:18 +0000 (17:15 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 25 Feb 2019 13:13:24 +0000 (14:13 +0100)
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>
fs/btrfs/async-thread.c

index d522494698fa4ee50b91adfe94eec125506e62d4..122cb97c79098ec10623a59d1101a191c7038a6a 100644 (file)
@@ -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;