Home
last modified time | relevance | path

Searched refs:root (Results 1 – 16 of 16) sorted by relevance

/mm/
Drmap.c101 anon_vma->root = anon_vma; in anon_vma_alloc()
129 if (rwsem_is_locked(&anon_vma->root->rwsem)) { in anon_vma_free()
241 static inline struct anon_vma *lock_anon_vma_root(struct anon_vma *root, struct anon_vma *anon_vma) in lock_anon_vma_root() argument
243 struct anon_vma *new_root = anon_vma->root; in lock_anon_vma_root()
244 if (new_root != root) { in lock_anon_vma_root()
245 if (WARN_ON_ONCE(root)) in lock_anon_vma_root()
246 up_write(&root->rwsem); in lock_anon_vma_root()
247 root = new_root; in lock_anon_vma_root()
248 down_write(&root->rwsem); in lock_anon_vma_root()
250 return root; in lock_anon_vma_root()
[all …]
Dinterval_tree.c30 struct rb_root_cached *root) in vma_interval_tree_insert_after() argument
57 rb_insert_augmented(&node->shared.rb, &root->rb_root, in vma_interval_tree_insert_after()
76 struct rb_root_cached *root) in INTERVAL_TREE_DEFINE()
82 __anon_vma_interval_tree_insert(node, root); in INTERVAL_TREE_DEFINE()
86 struct rb_root_cached *root) in anon_vma_interval_tree_remove() argument
88 __anon_vma_interval_tree_remove(node, root); in anon_vma_interval_tree_remove()
92 anon_vma_interval_tree_iter_first(struct rb_root_cached *root, in anon_vma_interval_tree_iter_first() argument
95 return __anon_vma_interval_tree_iter_first(root, first, last); in anon_vma_interval_tree_iter_first()
Dksm.c592 struct rb_root *root) in alloc_stable_node_chain() argument
610 rb_replace_node(&dup->node, &chain->node, root); in alloc_stable_node_chain()
625 struct rb_root *root) in free_stable_node_chain() argument
627 rb_erase(&chain->node, root); in free_stable_node_chain()
916 struct rb_root *root) in remove_stable_node_chain() argument
936 free_stable_node_chain(stable_node, root); in remove_stable_node_chain()
1358 struct rb_root *root, in stable_node_dup() argument
1431 root); in stable_node_dup()
1476 struct rb_root *root) in stable_node_dup_any() argument
1481 free_stable_node_chain(stable_node, root); in stable_node_dup_any()
[all …]
Dcleancache.c306 struct dentry *root = debugfs_create_dir("cleancache", NULL); in init_cleancache() local
308 debugfs_create_u64("succ_gets", 0444, root, &cleancache_succ_gets); in init_cleancache()
309 debugfs_create_u64("failed_gets", 0444, root, &cleancache_failed_gets); in init_cleancache()
310 debugfs_create_u64("puts", 0444, root, &cleancache_puts); in init_cleancache()
311 debugfs_create_u64("invalidates", 0444, root, &cleancache_invalidates); in init_cleancache()
Dfrontswap.c485 struct dentry *root = debugfs_create_dir("frontswap", NULL); in init_frontswap() local
486 if (root == NULL) in init_frontswap()
488 debugfs_create_u64("loads", 0444, root, &frontswap_loads); in init_frontswap()
489 debugfs_create_u64("succ_stores", 0444, root, &frontswap_succ_stores); in init_frontswap()
490 debugfs_create_u64("failed_stores", 0444, root, in init_frontswap()
492 debugfs_create_u64("invalidates", 0444, root, &frontswap_invalidates); in init_frontswap()
Dsparse.c83 unsigned long root = SECTION_NR_TO_ROOT(section_nr); in sparse_index_init() local
93 if (mem_section[root]) in sparse_index_init()
100 mem_section[root] = section; in sparse_index_init()
115 struct mem_section *root = NULL; in __section_nr() local
118 root = __nr_to_section(root_nr * SECTIONS_PER_ROOT); in __section_nr()
119 if (!root) in __section_nr()
122 if ((ms >= root) && (ms < (root + SECTIONS_PER_ROOT))) in __section_nr()
126 VM_BUG_ON(!root); in __section_nr()
128 return (root_nr * SECTIONS_PER_ROOT) + (ms - root); in __section_nr()
Dvmalloc.c525 struct rb_root *root, struct rb_node *from, in find_va_links() argument
531 if (root) { in find_va_links()
532 link = &root->rb_node; in find_va_links()
591 link_va(struct vmap_area *va, struct rb_root *root, in link_va() argument
606 if (root == &free_vmap_area_root) { in link_va()
619 root, &free_vmap_area_rb_augment_cb); in link_va()
622 rb_insert_color(&va->rb_node, root); in link_va()
630 unlink_va(struct vmap_area *va, struct rb_root *root) in unlink_va() argument
635 if (root == &free_vmap_area_root) in unlink_va()
637 root, &free_vmap_area_rb_augment_cb); in unlink_va()
[all …]
Dzswap.c284 static struct zswap_entry *zswap_rb_search(struct rb_root *root, pgoff_t offset) in zswap_rb_search() argument
286 struct rb_node *node = root->rb_node; in zswap_rb_search()
305 static int zswap_rb_insert(struct rb_root *root, struct zswap_entry *entry, in zswap_rb_insert() argument
308 struct rb_node **link = &root->rb_node, *parent = NULL; in zswap_rb_insert()
324 rb_insert_color(&entry->rbnode, root); in zswap_rb_insert()
328 static void zswap_rb_erase(struct rb_root *root, struct zswap_entry *entry) in zswap_rb_erase() argument
331 rb_erase(&entry->rbnode, root); in zswap_rb_erase()
375 static struct zswap_entry *zswap_entry_find_get(struct rb_root *root, in zswap_entry_find_get() argument
380 entry = zswap_rb_search(root, offset); in zswap_entry_find_get()
Dmmap.c350 struct rb_root *root = &mm->mm_rb; in browse_rb() local
355 for (nd = rb_first(root); nd; nd = rb_next(nd)) { in browse_rb()
396 static void validate_mm_rb(struct rb_root *root, struct vm_area_struct *ignore) in validate_mm_rb() argument
400 for (nd = rb_first(root); nd; nd = rb_next(nd)) { in validate_mm_rb()
449 #define validate_mm_rb(root, ignore) do { } while (0) argument
481 struct rb_root *root = &mm->mm_rb; in vma_rb_insert() local
484 validate_mm_rb(root, NULL); in vma_rb_insert()
486 rb_insert_augmented(&vma->vm_rb, root, &vma_gap_callbacks); in vma_rb_insert()
491 struct rb_root *root = &mm->mm_rb; in __vma_rb_erase() local
498 rb_erase_augmented(&vma->vm_rb, root, &vma_gap_callbacks); in __vma_rb_erase()
[all …]
Dmemcontrol.c225 #define for_each_mem_cgroup_tree(iter, root) \ argument
226 for (iter = mem_cgroup_iter(root, NULL, NULL); \
228 iter = mem_cgroup_iter(root, iter, NULL))
1141 struct mem_cgroup *mem_cgroup_iter(struct mem_cgroup *root, in mem_cgroup_iter() argument
1153 if (!root) in mem_cgroup_iter()
1154 root = root_mem_cgroup; in mem_cgroup_iter()
1159 if (!root->use_hierarchy && root != root_mem_cgroup) { in mem_cgroup_iter()
1162 return root; in mem_cgroup_iter()
1170 mz = mem_cgroup_nodeinfo(root, reclaim->pgdat->node_id); in mem_cgroup_iter()
1196 css = css_next_descendant_pre(css, &root->css); in mem_cgroup_iter()
[all …]
Dmempolicy.c2379 struct rb_node *n = sp->root.rb_node; in sp_lookup()
2412 struct rb_node **p = &sp->root.rb_node; in sp_insert()
2427 rb_insert_color(&new->nd, &sp->root); in sp_insert()
2439 if (!sp->root.rb_node) in mpol_shared_policy_lookup()
2560 rb_erase(&n->nd, &sp->root); in sp_delete()
2674 sp->root = RB_ROOT; /* empty tree == default mempolicy */ in mpol_shared_policy_init()
2739 if (!p->root.rb_node) in mpol_free_shared_policy()
2742 next = rb_first(&p->root); in mpol_free_shared_policy()
Dmemblock.c2035 struct dentry *root = debugfs_create_dir("memblock", NULL); in memblock_init_debugfs() local
2037 debugfs_create_file("memory", 0444, root, in memblock_init_debugfs()
2039 debugfs_create_file("reserved", 0444, root, in memblock_init_debugfs()
2042 debugfs_create_file("physmem", 0444, root, &physmem, in memblock_init_debugfs()
Dshmem.c3583 struct shmem_sb_info *sbinfo = SHMEM_SB(fc->root->d_sb); in shmem_reconfigure()
3643 static int shmem_show_options(struct seq_file *seq, struct dentry *root) in shmem_show_options() argument
3645 struct shmem_sb_info *sbinfo = SHMEM_SB(root->d_sb); in shmem_show_options()
DKconfig319 root has set /sys/kernel/mm/ksm/run to 1 (if CONFIG_SYSFS is set).
Dmemory.c3487 static inline void unmap_mapping_range_tree(struct rb_root_cached *root, in unmap_mapping_range_tree() argument
3493 vma_interval_tree_foreach(vma, root, in unmap_mapping_range_tree()
/mm/damon/
Ddbgfs.c701 struct dentry *root, **new_dirs, *new_dir; in dbgfs_mk_context() local
719 root = dbgfs_dirs[0]; in dbgfs_mk_context()
720 if (!root) in dbgfs_mk_context()
723 new_dir = debugfs_create_dir(name, root); in dbgfs_mk_context()
787 struct dentry *root, *dir, **new_dirs; in dbgfs_rm_context() local
796 root = dbgfs_dirs[0]; in dbgfs_rm_context()
797 if (!root) in dbgfs_rm_context()
800 dir = debugfs_lookup(name, root); in dbgfs_rm_context()