Lines Matching defs:wait
9 #include <linux/wait.h>
1604 * we need to wait for sync writes to complete and for dirty
1869 * can wait for caps to flush without starving.
2146 * must wait for the BDI's delayed work to flush the dirty
2148 * at most 5 seconds. That means the MDS needs to wait at
2310 * flush the mdlog and wait for any unsafe requests to complete.
2336 * manually, or in the worst case we must wait at most 5 seconds
2337 * to wait the journal logs to be flushed by the MDSes periodically.
2404 dout("%s %p wait on tid %llu %llu\n", __func__,
2451 * only wait on non-file metadata writeback (the mds
2453 * wait for that)
2472 * Flush any dirty caps back to the mds. If we aren't asked to wait,
2474 * get by with fewer MDS messages if we wait for data writeback to
2483 int wait = (wbc->sync_mode == WB_SYNC_ALL && !wbc->for_sync);
2485 dout("write_inode %p wait=%d\n", inode, wait);
2487 if (wait) {
2790 * If a sync write is in progress, we must wait, so that we
2806 * For RDCACHE|RD -> RD, there is not need to wait and we can
2992 DEFINE_WAIT_FUNC(wait, woken_wake_function);
3005 add_wait_queue(&ci->i_cap_wq, &wait);
3014 wait_woken(&wait, TASK_INTERRUPTIBLE, MAX_SCHEDULE_TIMEOUT);
3017 remove_wait_queue(&ci->i_cap_wq, &wait);