diff options
author | Chris Mason <chris.mason@oracle.com> | 2009-01-05 21:25:51 -0500 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2009-01-05 21:25:51 -0500 |
commit | d397712bcc6a759a560fd247e6053ecae091f958 (patch) | |
tree | 9da8daebb870d8b8b1843507c4621715e23dd31a /fs/btrfs/async-thread.c | |
parent | 1f3c79a28c8837e8572b98f6d14142d9a6133c56 (diff) |
Btrfs: Fix checkpatch.pl warnings
There were many, most are fixed now. struct-funcs.c generates some warnings
but these are bogus.
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/async-thread.c')
-rw-r--r-- | fs/btrfs/async-thread.c | 6 |
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); |