Home
last modified time | relevance | path

Searched refs:id (Results 1 – 10 of 10) sorted by relevance

/mm/
Dmmu_notifier.c45 int id; in __mmu_notifier_release() local
51 id = srcu_read_lock(&srcu); in __mmu_notifier_release()
76 srcu_read_unlock(&srcu, id); in __mmu_notifier_release()
100 int young = 0, id; in __mmu_notifier_clear_flush_young() local
102 id = srcu_read_lock(&srcu); in __mmu_notifier_clear_flush_young()
107 srcu_read_unlock(&srcu, id); in __mmu_notifier_clear_flush_young()
117 int young = 0, id; in __mmu_notifier_clear_young() local
119 id = srcu_read_lock(&srcu); in __mmu_notifier_clear_young()
124 srcu_read_unlock(&srcu, id); in __mmu_notifier_clear_young()
133 int young = 0, id; in __mmu_notifier_test_young() local
[all …]
Dswap_cgroup.c18 unsigned short id; member
108 retval = sc->id; in swap_cgroup_cmpxchg()
110 sc->id = new; in swap_cgroup_cmpxchg()
126 unsigned short swap_cgroup_record(swp_entry_t ent, unsigned short id, in swap_cgroup_record() argument
139 old = sc->id; in swap_cgroup_record()
141 VM_BUG_ON(sc->id != old); in swap_cgroup_record()
142 sc->id = id; in swap_cgroup_record()
164 return lookup_swap_cgroup(ent, NULL)->id; in lookup_swap_cgroup_id()
Dbacking-dev.c513 WARN_ON(!radix_tree_delete(&wb->bdi->cgwb_tree, wb->memcg_css->id)); in cgwb_kill()
545 wb = radix_tree_lookup(&bdi->cgwb_tree, memcg_css->id); in cgwb_create()
561 ret = wb_init(wb, bdi, blkcg_css->id, gfp); in cgwb_create()
589 ret = radix_tree_insert(&bdi->cgwb_tree, memcg_css->id, wb); in cgwb_create()
652 wb = radix_tree_lookup(&bdi->cgwb_tree, memcg_css->id); in wb_get_lookup()
884 static struct rb_node **bdi_lookup_rb_node(u64 id, struct rb_node **parentp) in bdi_lookup_rb_node() argument
896 if (bdi->id > id) in bdi_lookup_rb_node()
898 else if (bdi->id < id) in bdi_lookup_rb_node()
916 struct backing_dev_info *bdi_get_by_id(u64 id) in bdi_get_by_id() argument
922 p = bdi_lookup_rb_node(id, NULL); in bdi_get_by_id()
[all …]
Dmemcontrol.c2758 int id, size; in memcg_alloc_cache_id() local
2761 id = ida_simple_get(&memcg_cache_ida, in memcg_alloc_cache_id()
2763 if (id < 0) in memcg_alloc_cache_id()
2764 return id; in memcg_alloc_cache_id()
2766 if (id < memcg_nr_cache_ids) in memcg_alloc_cache_id()
2767 return id; in memcg_alloc_cache_id()
2775 size = 2 * (id + 1); in memcg_alloc_cache_id()
2790 ida_simple_remove(&memcg_cache_ida, id); in memcg_alloc_cache_id()
2793 return id; in memcg_alloc_cache_id()
2796 static void memcg_free_cache_id(int id) in memcg_free_cache_id() argument
[all …]
Dvmscan.c208 int id, ret = -ENOMEM; in prealloc_memcg_shrinker() local
212 id = idr_alloc(&shrinker_idr, SHRINKER_REGISTERING, 0, 0, GFP_KERNEL); in prealloc_memcg_shrinker()
213 if (id < 0) in prealloc_memcg_shrinker()
216 if (id >= shrinker_nr_max) { in prealloc_memcg_shrinker()
217 if (memcg_expand_shrinker_maps(id)) { in prealloc_memcg_shrinker()
218 idr_remove(&shrinker_idr, id); in prealloc_memcg_shrinker()
222 shrinker_nr_max = id + 1; in prealloc_memcg_shrinker()
224 shrinker->id = id; in prealloc_memcg_shrinker()
233 int id = shrinker->id; in unregister_memcg_shrinker() local
235 BUG_ON(id < 0); in unregister_memcg_shrinker()
[all …]
Dlist_lru.c608 lru->shrinker_id = shrinker->id; in __list_lru_init()
Dhugetlb.c2859 struct node_hstate *nhs = &node_hstates[node->dev.id]; in hugetlb_unregister_node()
2884 struct node_hstate *nhs = &node_hstates[node->dev.id]; in hugetlb_register_node()
2901 h->name, node->dev.id); in hugetlb_register_node()
2919 if (node->dev.id == nid) in hugetlb_register_all_nodes()
Dslab_common.c1630 cache_name(c), css->id, status, in memcg_slabinfo_show()
Dcompaction.c2471 int nid = dev->id; in sysfs_compact_node()
Dhuge_memory.c2891 deferred_split_shrinker.id); in deferred_split_huge_page()