Lines Matching refs:congested

311 	wb->congested = wb_congested_get_create(bdi, blkcg_id, gfp);  in wb_init()
312 if (!wb->congested) { in wb_init()
334 wb_congested_put(wb->congested); in wb_init()
377 wb_congested_put(wb->congested); in wb_exit()
407 struct bdi_writeback_congested *new_congested = NULL, *congested; in wb_congested_get_create() local
418 congested = rb_entry(parent, struct bdi_writeback_congested, in wb_congested_get_create()
420 if (congested->blkcg_id < blkcg_id) in wb_congested_get_create()
422 else if (congested->blkcg_id > blkcg_id) in wb_congested_get_create()
430 congested = new_congested; in wb_congested_get_create()
431 rb_link_node(&congested->rb_node, parent, node); in wb_congested_get_create()
432 rb_insert_color(&congested->rb_node, &bdi->cgwb_congested_tree); in wb_congested_get_create()
434 return congested; in wb_congested_get_create()
450 refcount_inc(&congested->refcnt); in wb_congested_get_create()
453 return congested; in wb_congested_get_create()
462 void wb_congested_put(struct bdi_writeback_congested *congested) in wb_congested_put() argument
466 if (!refcount_dec_and_lock_irqsave(&congested->refcnt, &cgwb_lock, &flags)) in wb_congested_put()
470 if (congested->__bdi) { in wb_congested_put()
471 rb_erase(&congested->rb_node, in wb_congested_put()
472 &congested->__bdi->cgwb_congested_tree); in wb_congested_put()
473 congested->__bdi = NULL; in wb_congested_put()
477 kfree(congested); in wb_congested_put()
778 struct bdi_writeback_congested *congested = in cgwb_bdi_exit() local
782 congested->__bdi = NULL; /* mark @congested unlinked */ in cgwb_bdi_exit()
1051 void clear_wb_congested(struct bdi_writeback_congested *congested, int sync) in clear_wb_congested() argument
1057 if (test_and_clear_bit(bit, &congested->state)) in clear_wb_congested()
1065 void set_wb_congested(struct bdi_writeback_congested *congested, int sync) in set_wb_congested() argument
1070 if (!test_and_set_bit(bit, &congested->state)) in set_wb_congested()