Searched refs:refcnt (Results 1 – 3 of 3) sorted by relevance
/mm/ |
D | backing-dev.c | 386 percpu_ref_exit(&wb->refcnt); in cgwb_free_rcu() 411 static void cgwb_release(struct percpu_ref *refcnt) in cgwb_release() argument 413 struct bdi_writeback *wb = container_of(refcnt, struct bdi_writeback, in cgwb_release() 414 refcnt); in cgwb_release() 425 percpu_ref_kill(&wb->refcnt); in cgwb_kill() 474 ret = percpu_ref_init(&wb->refcnt, cgwb_release, 0, gfp); in cgwb_create() 519 percpu_ref_exit(&wb->refcnt); in cgwb_create() 729 kref_init(&bdi->refcnt); in bdi_init() 905 container_of(ref, struct backing_dev_info, refcnt); in release_bdi() 916 kref_put(&bdi->refcnt, release_bdi); in bdi_put()
|
D | mempolicy.c | 123 .refcnt = ATOMIC_INIT(1), /* never free it */ 305 atomic_set(&policy->refcnt, 1); in mpol_new() 315 if (!atomic_dec_and_test(&p->refcnt)) in __mpol_put() 2331 atomic_set(&new->refcnt, 1); in __mpol_dup() 2620 atomic_set(&mpol_new->refcnt, 1); in shared_policy_replace() 2656 atomic_set(&mpol_new->refcnt, 1); in shared_policy_replace() 2815 .refcnt = ATOMIC_INIT(1), in numa_policy_init()
|
D | memcontrol.c | 259 struct obj_cgroup *objcg = container_of(ref, struct obj_cgroup, refcnt); in obj_cgroup_release() 310 ret = percpu_ref_init(&objcg->refcnt, obj_cgroup_release, 0, in obj_cgroup_alloc() 344 percpu_ref_kill(&objcg->refcnt); in memcg_reparent_objcgs()
|