]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8b236004352ee50b0cb029336563252929283291
tree94713ff69670e1d1f12025533f52bb1572e496e7
parented9fdecd56d463b0c56b444321fbbd8e08ba89de
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