Home
last modified time | relevance | path

Searched refs:refcnt (Results 1 – 3 of 3) sorted by relevance

/mm/
Dbacking-dev.c393 percpu_ref_exit(&wb->refcnt); in cgwb_free_rcu()
424 static void cgwb_release(struct percpu_ref *refcnt) in cgwb_release() argument
426 struct bdi_writeback *wb = container_of(refcnt, struct bdi_writeback, in cgwb_release()
427 refcnt); in cgwb_release()
439 percpu_ref_kill(&wb->refcnt); in cgwb_kill()
488 ret = percpu_ref_init(&wb->refcnt, cgwb_release, 0, gfp); in cgwb_create()
534 percpu_ref_exit(&wb->refcnt); in cgwb_create()
794 kref_init(&bdi->refcnt); in bdi_init()
973 container_of(ref, struct backing_dev_info, refcnt); in release_bdi()
984 kref_put(&bdi->refcnt, release_bdi); in bdi_put()
Dmempolicy.c126 .refcnt = ATOMIC_INIT(1), /* never free it */
296 atomic_set(&policy->refcnt, 1); in mpol_new()
306 if (!atomic_dec_and_test(&p->refcnt)) in __mpol_put()
2235 atomic_set(&new->refcnt, 1); in __mpol_dup()
2530 atomic_set(&mpol_new->refcnt, 1); in shared_policy_replace()
2566 atomic_set(&mpol_new->refcnt, 1); in shared_policy_replace()
2725 .refcnt = ATOMIC_INIT(1), in numa_policy_init()
Dmemcontrol.c272 struct obj_cgroup *objcg = container_of(ref, struct obj_cgroup, refcnt); in obj_cgroup_release()
321 ret = percpu_ref_init(&objcg->refcnt, obj_cgroup_release, 0, in obj_cgroup_alloc()
350 percpu_ref_kill(&objcg->refcnt); in memcg_reparent_objcgs()