aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/async-thread.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/btrfs/async-thread.c')
-rw-r--r--fs/btrfs/async-thread.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/btrfs/async-thread.c b/fs/btrfs/async-thread.c
index 4229450b7596..8e2fec05dbe0 100644
--- a/fs/btrfs/async-thread.c
+++ b/fs/btrfs/async-thread.c
@@ -104,7 +104,7 @@ static noinline int run_ordered_completions(struct btrfs_workers *workers,
104 104
105 spin_lock_irqsave(&workers->lock, flags); 105 spin_lock_irqsave(&workers->lock, flags);
106 106
107 while(!list_empty(&workers->order_list)) { 107 while (!list_empty(&workers->order_list)) {
108 work = list_entry(workers->order_list.next, 108 work = list_entry(workers->order_list.next,
109 struct btrfs_work, order_list); 109 struct btrfs_work, order_list);
110 110
@@ -143,7 +143,7 @@ static int worker_loop(void *arg)
143 struct btrfs_work *work; 143 struct btrfs_work *work;
144 do { 144 do {
145 spin_lock_irq(&worker->lock); 145 spin_lock_irq(&worker->lock);
146 while(!list_empty(&worker->pending)) { 146 while (!list_empty(&worker->pending)) {
147 cur = worker->pending.next; 147 cur = worker->pending.next;
148 work = list_entry(cur, struct btrfs_work, list); 148 work = list_entry(cur, struct btrfs_work, list);
149 list_del(&work->list); 149 list_del(&work->list);
@@ -188,7 +188,7 @@ int btrfs_stop_workers(struct btrfs_workers *workers)
188 struct btrfs_worker_thread *worker; 188 struct btrfs_worker_thread *worker;
189 189
190 list_splice_init(&workers->idle_list, &workers->worker_list); 190 list_splice_init(&workers->idle_list, &workers->worker_list);
191 while(!list_empty(&workers->worker_list)) { 191 while (!list_empty(&workers->worker_list)) {
192 cur = workers->worker_list.next; 192 cur = workers->worker_list.next;
193 worker = list_entry(cur, struct btrfs_worker_thread, 193 worker = list_entry(cur, struct btrfs_worker_thread,
194 worker_list); 194 worker_list);