Lines Matching refs:refcnt
439 atomic_set(&new_congested->refcnt, 0); in wb_congested_get_create()
445 atomic_inc(&congested->refcnt); in wb_congested_get_create()
462 if (!atomic_dec_and_lock(&congested->refcnt, &cgwb_lock)) { in wb_congested_put()
494 percpu_ref_exit(&wb->refcnt); in cgwb_release_workfn()
502 static void cgwb_release(struct percpu_ref *refcnt) in cgwb_release() argument
504 struct bdi_writeback *wb = container_of(refcnt, struct bdi_writeback, in cgwb_release()
505 refcnt); in cgwb_release()
516 percpu_ref_kill(&wb->refcnt); in cgwb_kill()
556 ret = percpu_ref_init(&wb->refcnt, cgwb_release, 0, gfp); in cgwb_create()
601 percpu_ref_exit(&wb->refcnt); in cgwb_create()
762 atomic_set(&bdi->wb_congested->refcnt, 1); in cgwb_bdi_init()