aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/async-thread.h
diff options
context:
space:
mode:
Diffstat (limited to 'fs/btrfs/async-thread.h')
-rw-r--r--fs/btrfs/async-thread.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/fs/btrfs/async-thread.h b/fs/btrfs/async-thread.h
index ad4d0647d1a6..8e52484cd461 100644
--- a/fs/btrfs/async-thread.h
+++ b/fs/btrfs/async-thread.h
@@ -21,6 +21,7 @@
21#define __BTRFS_ASYNC_THREAD_ 21#define __BTRFS_ASYNC_THREAD_
22#include <linux/workqueue.h> 22#include <linux/workqueue.h>
23 23
24struct btrfs_fs_info;
24struct btrfs_workqueue; 25struct btrfs_workqueue;
25/* Internal use only */ 26/* Internal use only */
26struct __btrfs_workqueue; 27struct __btrfs_workqueue;
@@ -67,7 +68,8 @@ BTRFS_WORK_HELPER_PROTO(scrubnc_helper);
67BTRFS_WORK_HELPER_PROTO(scrubparity_helper); 68BTRFS_WORK_HELPER_PROTO(scrubparity_helper);
68 69
69 70
70struct btrfs_workqueue *btrfs_alloc_workqueue(const char *name, 71struct btrfs_workqueue *btrfs_alloc_workqueue(struct btrfs_fs_info *fs_info,
72 const char *name,
71 unsigned int flags, 73 unsigned int flags,
72 int limit_active, 74 int limit_active,
73 int thresh); 75 int thresh);
@@ -80,4 +82,6 @@ void btrfs_queue_work(struct btrfs_workqueue *wq,
80void btrfs_destroy_workqueue(struct btrfs_workqueue *wq); 82void btrfs_destroy_workqueue(struct btrfs_workqueue *wq);
81void btrfs_workqueue_set_max(struct btrfs_workqueue *wq, int max); 83void btrfs_workqueue_set_max(struct btrfs_workqueue *wq, int max);
82void btrfs_set_work_high_priority(struct btrfs_work *work); 84void btrfs_set_work_high_priority(struct btrfs_work *work);
85struct btrfs_fs_info *btrfs_work_owner(struct btrfs_work *work);
86struct btrfs_fs_info *btrfs_workqueue_owner(struct __btrfs_workqueue *wq);
83#endif 87#endif