Lines Matching defs:wait
9 #include <linux/wait.h>
1554 * we need to wait for sync writes to complete and for dirty
1825 * can wait for caps to flush without starving.
2300 * wait for any unsafe requests to complete.
2326 * manually, or in the worst case we must wait at most 5 seconds
2327 * to wait the journal logs to be flushed by the MDSes periodically.
2394 dout("unsafe_request_wait %p wait on tid %llu %llu\n",
2441 * only wait on non-file metadata writeback (the mds
2443 * wait for that)
2462 * Flush any dirty caps back to the mds. If we aren't asked to wait,
2464 * get by with fewer MDS messages if we wait for data writeback to
2473 int wait = (wbc->sync_mode == WB_SYNC_ALL && !wbc->for_sync);
2475 dout("write_inode %p wait=%d\n", inode, wait);
2476 if (wait) {
2772 * If a sync write is in progress, we must wait, so that we
2976 DEFINE_WAIT_FUNC(wait, woken_wake_function);
2989 add_wait_queue(&ci->i_cap_wq, &wait);
2998 wait_woken(&wait, TASK_INTERRUPTIBLE, MAX_SCHEDULE_TIMEOUT);
3001 remove_wait_queue(&ci->i_cap_wq, &wait);