btrfs: simplify WQ_HIGHPRI handling in struct btrfs_workqueue
authorChristoph Hellwig <hch@lst.de>
Mon, 18 Apr 2022 04:43:09 +0000 (06:43 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 16 May 2022 15:03:15 +0000 (17:03 +0200)
commita31b4a4368d28c5e780f0906588fbd1dcfe4ad54
tree94713ff69670e1d1f12025533f52bb1572e496e7
parenta7b8e39c922b894753a1edd305eedee0d4b3930f
btrfs: simplify WQ_HIGHPRI handling in struct btrfs_workqueue

Just let the one caller that wants optional WQ_HIGHPRI handling allocate
a separate btrfs_workqueue for that.  This allows to rename struct
__btrfs_workqueue to btrfs_workqueue, remove a pointer indirection and
separate allocation for all btrfs_workqueue users and generally simplify
the code.

Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/async-thread.c
fs/btrfs/async-thread.h
fs/btrfs/ctree.h
fs/btrfs/disk-io.c
fs/btrfs/super.c
include/trace/events/btrfs.h