btrfs: remove unused workqueue helpers
David Sterba
maintainerPATCH 1/1 btrfs: remove unused workqueue helpers
The _owner helpers havent' been used since its introduction in cb001095ca705dcd95 ("btrfs: plumb fs_info into btrfs_work"), there are no external users of the private wq::fs_info pointer.
Signed-off-by David Sterba <[email protected]>
--- fs/btrfs/async-thread.c | 12 ------------ fs/btrfs/async-thread.h | 2 -- 2 files changed, 14 deletions(-)
fs/btrfs/async-thread.c +0 -12
@@ -61,18 +61,6 @@ noinline_for_stack void btrfs_##name(struct work_struct *arg) \normal_work_helper (work); \ } -struct btrfs_fs_info * -btrfs_workqueue_owner (const struct __btrfs_workqueue *wq) -{ -return wq->fs_info; -} - -struct btrfs_fs_info * -btrfs_work_owner (const struct btrfs_work *work) -{ -return work->wq->fs_info; -} -bool btrfs_workqueue_normal_congested (const struct btrfs_workqueue *wq) {/*
fs/btrfs/async-thread.h +0 -2
@@ -70,8 +70,6 @@ void btrfs_queue_work(struct btrfs_workqueue *wq,void btrfs_destroy_workqueue (struct btrfs_workqueue *wq);void btrfs_workqueue_set_max (struct btrfs_workqueue *wq,int max);void btrfs_set_work_high_priority (struct btrfs_work *work); -struct btrfs_fs_info *btrfs_work_owner (const struct btrfs_work *work); -struct btrfs_fs_info *btrfs_workqueue_owner (const struct __btrfs_workqueue *wq);bool btrfs_workqueue_normal_congested (const struct btrfs_workqueue *wq);#endif
Signature · 1 line
2.20.1
Quoted 5 lines · David Sterba
The
_ownerhelpers havent' been used since its introduction incb001095ca705dcd95("btrfs: plumbfs_infointobtrfs_work"), there are no external users of the privatewq::fs_infopointer.Signed-off-by David Sterba <[email protected]>
Reviewed-by Nikolay Borisov <[email protected]>
Quoted 42 lines
--- fs/btrfs/async-thread.c | 12 ------------ fs/btrfs/async-thread.h | 2 -- 2 files changed, 14 deletions(-)fs/btrfs/async-thread.c +0
-12@@ -61,18 +61,6 @@ noinline_for_stack void btrfs_##name(struct work_struct *arg) \normal_work_helper (work); \ } -struct btrfs_fs_info * -btrfs_workqueue_owner (const struct __btrfs_workqueue *wq) -{ -return wq->fs_info; -} - -struct btrfs_fs_info * -btrfs_work_owner (const struct btrfs_work *work) -{ -return work->wq->fs_info; -} -bool btrfs_workqueue_normal_congested (const struct btrfs_workqueue *wq) {/* fs/btrfs/async-thread.h +0
-2@@ -70,8 +70,6 @@ void btrfs_queue_work(struct btrfs_workqueue *wq,void btrfs_destroy_workqueue (struct btrfs_workqueue *wq);void btrfs_workqueue_set_max (struct btrfs_workqueue *wq,int max);void btrfs_set_work_high_priority (struct btrfs_work *work); -struct btrfs_fs_info *btrfs_work_owner (const struct btrfs_work *work); -struct btrfs_fs_info *btrfs_workqueue_owner (const struct __btrfs_workqueue *wq);bool btrfs_workqueue_normal_congested (const struct btrfs_workqueue *wq);#endif
Quoted 3 lines · David Sterba
The
_ownerhelpers havent' been used since its introduction incb001095ca705dcd95("btrfs: plumbfs_infointobtrfs_work"), there are no external users of the privatewq::fs_infopointer.
Tracepoints ... patch dropped.