Lines Matching defs:done
55 struct wb_completion *done; /* set if the caller waits */
171 struct wb_completion *done = work->done;
175 if (done) {
176 wait_queue_head_t *waitq = done->waitq;
178 /* @done can't be accessed after the following dec */
179 if (atomic_dec_and_test(&done->cnt))
189 if (work->done)
190 atomic_inc(&work->done->cnt);
205 * @done: target wb_completion
207 * Wait for one or more work items issued to @bdi with their ->done field
208 * set to @done, which should have been initialized with
213 void wb_wait_for_completion(struct wb_completion *done)
215 atomic_dec(&done->cnt); /* put down the initial count */
216 wait_event(*done->waitq, !atomic_read(&done->cnt));
1037 work->done = &fallback_work_done;
1057 * @done: target wb_completion
1063 enum wb_reason reason, struct wb_completion *done)
1117 work->done = done;
1438 /* just one sb in list, splice to dispatch_queue and we're done */
1680 * Get and clear the dirty flags from i_state. This needs to be done
1682 * inode during writepages due to delalloc. It also needs to be done
1727 * the regular batched writeback done by the flusher threads in
2092 * after the other works are all done.
2137 * mean the overall work is done. So we keep looping as long
2532 * update its dirty state. Once the flush worker is done with
2691 DEFINE_WB_COMPLETION(done, bdi);
2696 .done = &done,
2706 wb_wait_for_completion(&done);
2769 DEFINE_WB_COMPLETION(done, bdi);
2775 .done = &done,
2792 wb_wait_for_completion(&done);