diff options
Diffstat (limited to 'fs/btrfs/async-thread.h')
-rw-r--r-- | fs/btrfs/async-thread.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/fs/btrfs/async-thread.h b/fs/btrfs/async-thread.h index 3436ff897597..43e44d115dd1 100644 --- a/fs/btrfs/async-thread.h +++ b/fs/btrfs/async-thread.h | |||
@@ -69,11 +69,14 @@ struct btrfs_workers { | |||
69 | 69 | ||
70 | /* lock for finding the next worker thread to queue on */ | 70 | /* lock for finding the next worker thread to queue on */ |
71 | spinlock_t lock; | 71 | spinlock_t lock; |
72 | |||
73 | /* extra name for this worker */ | ||
74 | char *name; | ||
72 | }; | 75 | }; |
73 | 76 | ||
74 | int btrfs_queue_worker(struct btrfs_workers *workers, struct btrfs_work *work); | 77 | int btrfs_queue_worker(struct btrfs_workers *workers, struct btrfs_work *work); |
75 | int btrfs_start_workers(struct btrfs_workers *workers, int num_workers); | 78 | int btrfs_start_workers(struct btrfs_workers *workers, int num_workers); |
76 | int btrfs_stop_workers(struct btrfs_workers *workers); | 79 | int btrfs_stop_workers(struct btrfs_workers *workers); |
77 | void btrfs_init_workers(struct btrfs_workers *workers, int max); | 80 | void btrfs_init_workers(struct btrfs_workers *workers, char *name, int max); |
78 | int btrfs_requeue_work(struct btrfs_work *work); | 81 | int btrfs_requeue_work(struct btrfs_work *work); |
79 | #endif | 82 | #endif |