Lines Matching defs:sync
934 void clear_bdi_congested(struct backing_dev_info *bdi, int sync)
936 wait_queue_head_t *wqh = &congestion_wqh[sync];
939 bit = sync ? WB_sync_congested : WB_async_congested;
941 atomic_dec(&nr_wb_congested[sync]);
948 void set_bdi_congested(struct backing_dev_info *bdi, int sync)
952 bit = sync ? WB_sync_congested : WB_async_congested;
954 atomic_inc(&nr_wb_congested[sync]);
960 * @sync: SYNC or ASYNC IO
967 long congestion_wait(int sync, long timeout)
972 wait_queue_head_t *wqh = &congestion_wqh[sync];
987 * @sync: SYNC or ASYNC IO
992 * given @sync queue or a write to complete.
998 long wait_iff_congested(int sync, long timeout)
1003 wait_queue_head_t *wqh = &congestion_wqh[sync];
1009 if (atomic_read(&nr_wb_congested[sync]) == 0) {