Lines Matching refs:sync
477 void clear_bdi_congested(struct backing_dev_info *bdi, int sync) in clear_bdi_congested() argument
480 wait_queue_head_t *wqh = &congestion_wqh[sync]; in clear_bdi_congested()
482 bit = sync ? BDI_sync_congested : BDI_async_congested; in clear_bdi_congested()
484 atomic_dec(&nr_bdi_congested[sync]); in clear_bdi_congested()
491 void set_bdi_congested(struct backing_dev_info *bdi, int sync) in set_bdi_congested() argument
495 bit = sync ? BDI_sync_congested : BDI_async_congested; in set_bdi_congested()
497 atomic_inc(&nr_bdi_congested[sync]); in set_bdi_congested()
510 long congestion_wait(int sync, long timeout) in congestion_wait() argument
515 wait_queue_head_t *wqh = &congestion_wqh[sync]; in congestion_wait()
546 long wait_iff_congested(struct zone *zone, int sync, long timeout) in wait_iff_congested() argument
551 wait_queue_head_t *wqh = &congestion_wqh[sync]; in wait_iff_congested()
558 if (atomic_read(&nr_bdi_congested[sync]) == 0 || in wait_iff_congested()