Home
last modified time | relevance | path

Searched refs:ref (Results 1 – 5 of 5) sorted by relevance

/mm/
Dmemremap.c84 percpu_ref_kill(pgmap->ref); in dev_pagemap_kill()
93 percpu_ref_exit(pgmap->ref); in dev_pagemap_cleanup()
99 if (pgmap->ref == &pgmap->internal_ref) in dev_pagemap_cleanup()
100 pgmap->ref = NULL; in dev_pagemap_cleanup()
144 static void dev_pagemap_percpu_release(struct percpu_ref *ref) in dev_pagemap_percpu_release() argument
147 container_of(ref, struct dev_pagemap, internal_ref); in dev_pagemap_percpu_release()
198 if (!pgmap->ref) { in memremap_pages()
207 pgmap->ref = &pgmap->internal_ref; in memremap_pages()
306 percpu_ref_get_many(pgmap->ref, pfn_end(pgmap) - pfn_first(pgmap)); in memremap_pages()
404 if (pgmap && !percpu_ref_tryget_live(pgmap->ref)) in get_dev_pagemap()
Dz3fold.c462 release_z3fold_page(struct kref *ref) in release_z3fold_page() argument
464 struct z3fold_header *zhdr = container_of(ref, struct z3fold_header, in release_z3fold_page()
469 static void release_z3fold_page_locked(struct kref *ref) in release_z3fold_page_locked() argument
471 struct z3fold_header *zhdr = container_of(ref, struct z3fold_header, in release_z3fold_page_locked()
477 static void release_z3fold_page_locked_list(struct kref *ref) in release_z3fold_page_locked_list() argument
479 struct z3fold_header *zhdr = container_of(ref, struct z3fold_header, in release_z3fold_page_locked_list()
Dbacking-dev.c1026 static void release_bdi(struct kref *ref) in release_bdi() argument
1029 container_of(ref, struct backing_dev_info, refcnt); in release_bdi()
Dmemcontrol.c4921 refcount_add(n, &memcg->id.ref); in mem_cgroup_id_get_many()
4926 if (refcount_sub_and_test(n, &memcg->id.ref)) { in mem_cgroup_id_put_many()
5169 refcount_set(&memcg->id.ref, 1); in mem_cgroup_css_online()
6962 while (!refcount_inc_not_zero(&memcg->id.ref)) { in mem_cgroup_id_get_online()
Dhugetlb.c723 void resv_map_release(struct kref *ref) in resv_map_release() argument
725 struct resv_map *resv_map = container_of(ref, struct resv_map, refs); in resv_map_release()