/mm/ |
D | memblock.c | 162 bool __init_memblock memblock_overlaps_region(struct memblock_type *type, in memblock_overlaps_region() argument 167 for (i = 0; i < type->cnt; i++) in memblock_overlaps_region() 168 if (memblock_addrs_overlap(base, size, type->regions[i].base, in memblock_overlaps_region() 169 type->regions[i].size)) in memblock_overlaps_region() 171 return i < type->cnt; in memblock_overlaps_region() 356 static void __init_memblock memblock_remove_region(struct memblock_type *type, unsigned long r) in memblock_remove_region() argument 358 type->total_size -= type->regions[r].size; in memblock_remove_region() 359 memmove(&type->regions[r], &type->regions[r + 1], in memblock_remove_region() 360 (type->cnt - (r + 1)) * sizeof(type->regions[r])); in memblock_remove_region() 361 type->cnt--; in memblock_remove_region() [all …]
|
D | frontswap.c | 126 set_bit(si->type, a); in frontswap_register_ops() 148 set_bit(si->type, b); in frontswap_register_ops() 190 void __frontswap_init(unsigned type, unsigned long *map) in __frontswap_init() argument 192 struct swap_info_struct *sis = swap_info[type]; in __frontswap_init() 211 ops->init(type); in __frontswap_init() 249 int type = swp_type(entry); in __frontswap_store() local 250 struct swap_info_struct *sis = swap_info[type]; in __frontswap_store() 267 ops->invalidate_page(type, offset); in __frontswap_store() 272 ret = ops->store(type, offset, page); in __frontswap_store() 298 int type = swp_type(entry); in __frontswap_load() local [all …]
|
D | zpool.c | 77 static struct zpool_driver *zpool_get_driver(const char *type) in zpool_get_driver() argument 83 if (!strcmp(driver->type, type)) { in zpool_get_driver() 121 bool zpool_has_pool(char *type) in zpool_has_pool() argument 123 struct zpool_driver *driver = zpool_get_driver(type); in zpool_has_pool() 126 request_module("zpool-%s", type); in zpool_has_pool() 127 driver = zpool_get_driver(type); in zpool_has_pool() 155 struct zpool *zpool_create_pool(const char *type, const char *name, gfp_t gfp, in zpool_create_pool() argument 161 pr_debug("creating pool type %s\n", type); in zpool_create_pool() 163 driver = zpool_get_driver(type); in zpool_create_pool() 166 request_module("zpool-%s", type); in zpool_create_pool() [all …]
|
D | swapfile.c | 102 static struct swap_info_struct *swap_type_to_swap_info(int type) in swap_type_to_swap_info() argument 104 if (type >= READ_ONCE(nr_swapfiles)) in swap_type_to_swap_info() 108 return READ_ONCE(swap_info[type]); in swap_type_to_swap_info() 130 swp_entry_t entry = swp_entry(si->type, offset); in __try_to_reclaim_swap() 725 frontswap_invalidate_page(si->type, offset); in swap_range_free() 852 slots[n_ret++] = swp_entry(si->type, offset); in scan_swap_map_slots() 959 *slot = swp_entry(si->type, offset); in swap_alloc_cluster() 1032 si->type); in get_swap_pages() 1035 si->type); in get_swap_pages() 1050 si->type); in get_swap_pages() [all …]
|
D | zswap.c | 484 static struct zswap_pool *zswap_pool_find_get(char *type, char *compressor) in zswap_pool_find_get() argument 493 if (strcmp(zpool_get_type(pool->zpool), type)) in zswap_pool_find_get() 504 static struct zswap_pool *zswap_pool_create(char *type, char *compressor) in zswap_pool_create() argument 516 if (!strcmp(type, ZSWAP_PARAM_UNSET)) in zswap_pool_create() 529 pool->zpool = zpool_create_pool(type, name, gfp, &zswap_zpool_ops); in zswap_pool_create() 531 pr_err("%s zpool not available\n", type); in zswap_pool_create() 667 char *type, char *compressor) in __zswap_param_set() argument 688 if (!type) { in __zswap_param_set() 693 type = s; in __zswap_param_set() 707 pool = zswap_pool_find_get(type, compressor); in __zswap_param_set() [all …]
|
D | swap_cgroup.c | 39 static int swap_cgroup_prepare(int type) in swap_cgroup_prepare() argument 45 ctrl = &swap_cgroup_ctrl[type]; in swap_cgroup_prepare() 167 int swap_cgroup_swapon(int type, unsigned long max_pages) in swap_cgroup_swapon() argument 184 ctrl = &swap_cgroup_ctrl[type]; in swap_cgroup_swapon() 189 if (swap_cgroup_prepare(type)) { in swap_cgroup_swapon() 206 void swap_cgroup_swapoff(int type) in swap_cgroup_swapoff() argument 216 ctrl = &swap_cgroup_ctrl[type]; in swap_cgroup_swapoff()
|
D | swap_slots.c | 45 static void __drain_swap_slots_cache(unsigned int type); 170 static void drain_slots_cache_cpu(unsigned int cpu, unsigned int type, in drain_slots_cache_cpu() argument 177 if ((type & SLOTS_CACHE) && cache->slots) { in drain_slots_cache_cpu() 188 if ((type & SLOTS_CACHE_RET) && cache->slots_ret) { in drain_slots_cache_cpu() 202 static void __drain_swap_slots_cache(unsigned int type) in __drain_swap_slots_cache() argument 230 drain_slots_cache_cpu(cpu, type, false); in __drain_swap_slots_cache()
|
D | slab_common.c | 1240 new_kmalloc_cache(int idx, int type, slab_flags_t flags) in new_kmalloc_cache() argument 1244 if (type == KMALLOC_RECLAIM) { in new_kmalloc_cache() 1253 kmalloc_caches[type][idx] = create_kmalloc_cache(name, in new_kmalloc_cache() 1265 int i, type; in create_kmalloc_caches() local 1267 for (type = KMALLOC_NORMAL; type <= KMALLOC_RECLAIM; type++) { in create_kmalloc_caches() 1269 if (!kmalloc_caches[type][i]) in create_kmalloc_caches() 1270 new_kmalloc_cache(i, type, flags); in create_kmalloc_caches() 1278 !kmalloc_caches[type][1]) in create_kmalloc_caches() 1279 new_kmalloc_cache(1, type, flags); in create_kmalloc_caches() 1281 !kmalloc_caches[type][2]) in create_kmalloc_caches() [all …]
|
D | swap_state.c | 597 int init_swap_address_space(unsigned int type, unsigned long nr_pages) in init_swap_address_space() argument 614 nr_swapper_spaces[type] = nr; in init_swap_address_space() 615 swapper_spaces[type] = spaces; in init_swap_address_space() 620 void exit_swap_address_space(unsigned int type) in exit_swap_address_space() argument 622 kvfree(swapper_spaces[type]); in exit_swap_address_space() 623 nr_swapper_spaces[type] = 0; in exit_swap_address_space() 624 swapper_spaces[type] = NULL; in exit_swap_address_space()
|
D | vmalloc.c | 893 enum fit_type type; in classify_va_fit_type() local 903 type = FL_FIT_TYPE; in classify_va_fit_type() 905 type = LE_FIT_TYPE; in classify_va_fit_type() 907 type = RE_FIT_TYPE; in classify_va_fit_type() 909 type = NE_FIT_TYPE; in classify_va_fit_type() 912 return type; in classify_va_fit_type() 918 enum fit_type type) in adjust_va_to_fit_type() argument 922 if (type == FL_FIT_TYPE) { in adjust_va_to_fit_type() 932 } else if (type == LE_FIT_TYPE) { in adjust_va_to_fit_type() 941 } else if (type == RE_FIT_TYPE) { in adjust_va_to_fit_type() [all …]
|
D | memremap.c | 122 if (pgmap->type == MEMORY_DEVICE_PRIVATE) { in memunmap_pages() 171 switch (pgmap->type) { in memremap_pages() 194 WARN(1, "Invalid pgmap type %d\n", pgmap->type); in memremap_pages() 273 if (pgmap->type == MEMORY_DEVICE_PRIVATE) { in memremap_pages()
|
D | memory-failure.c | 838 enum mf_action_page_type type; member 888 static void action_result(unsigned long pfn, enum mf_action_page_type type, in action_result() argument 891 trace_memory_failure_event(pfn, type, result); in action_result() 894 pfn, action_page_types[type], action_name[result]); in action_result() 910 pfn, action_page_types[ps->type], count); in page_action() 913 action_result(pfn, ps->type, result); in page_action() 1184 if (pgmap->type == MEMORY_DEVICE_PRIVATE) { in memory_failure_dev_pagemap()
|
D | memory_hotplug.c | 139 unsigned long type) in get_page_bootmem() argument 141 page->freelist = (void *)type; in get_page_bootmem() 149 unsigned long type; in put_page_bootmem() local 151 type = (unsigned long) page->freelist; in put_page_bootmem() 152 BUG_ON(type < MEMORY_HOTPLUG_MIN_BOOTMEM_TYPE || in put_page_bootmem() 153 type > MEMORY_HOTPLUG_MAX_BOOTMEM_TYPE); in put_page_bootmem()
|
D | zsmalloc.c | 446 .type = "zsmalloc", 552 int type, unsigned long cnt) in zs_stat_inc() argument 554 class->stats.objs[type] += cnt; in zs_stat_inc() 559 int type, unsigned long cnt) in zs_stat_dec() argument 561 class->stats.objs[type] -= cnt; in zs_stat_dec() 566 int type) in zs_stat_get() argument 568 return class->stats.objs[type]; in zs_stat_get()
|
D | shmem.c | 1124 unsigned int type, bool frontswap) in shmem_find_swap_entries() argument 1143 if (swp_type(entry) != type) in shmem_find_swap_entries() 1146 !frontswap_test(swap_info[type], swp_offset(entry))) in shmem_find_swap_entries() 1200 static int shmem_unuse_inode(struct inode *inode, unsigned int type, in shmem_unuse_inode() argument 1219 type, frontswap); in shmem_unuse_inode() 1248 int shmem_unuse(unsigned int type, bool frontswap, in shmem_unuse() argument 1272 error = shmem_unuse_inode(&info->vfs_inode, type, frontswap, in shmem_unuse() 4053 int shmem_unuse(unsigned int type, bool frontswap, in shmem_unuse() argument
|
D | memcontrol.c | 4054 struct eventfd_ctx *eventfd, const char *args, enum res_type type) in __mem_cgroup_usage_register_event() argument 4068 if (type == _MEM) { in __mem_cgroup_usage_register_event() 4071 } else if (type == _MEMSWAP) { in __mem_cgroup_usage_register_event() 4079 __mem_cgroup_threshold(memcg, type == _MEMSWAP); in __mem_cgroup_usage_register_event() 4147 struct eventfd_ctx *eventfd, enum res_type type) in __mem_cgroup_usage_unregister_event() argument 4156 if (type == _MEM) { in __mem_cgroup_usage_unregister_event() 4159 } else if (type == _MEMSWAP) { in __mem_cgroup_usage_unregister_event() 4169 __mem_cgroup_threshold(memcg, type == _MEMSWAP); in __mem_cgroup_usage_unregister_event()
|
D | zbud.c | 205 .type = "zbud",
|
D | page_alloc.c | 5215 static void show_migration_types(unsigned char type) in show_migration_types() argument 5234 if (type & (1 << i)) in show_migration_types() 5419 int type; in show_free_areas() local 5425 for (type = 0; type < MIGRATE_TYPES; type++) { in show_free_areas() 5426 if (!free_area_empty(area, type)) in show_free_areas() 5427 types[order] |= 1 << type; in show_free_areas()
|
D | slub.c | 4700 int type = KMALLOC_NORMAL; in resiliency_test() local 4713 validate_slab_cache(kmalloc_caches[type][4]); in resiliency_test() 4722 validate_slab_cache(kmalloc_caches[type][5]); in resiliency_test() 4729 validate_slab_cache(kmalloc_caches[type][6]); in resiliency_test() 4736 validate_slab_cache(kmalloc_caches[type][7]); in resiliency_test() 4742 validate_slab_cache(kmalloc_caches[type][8]); in resiliency_test() 4748 validate_slab_cache(kmalloc_caches[type][9]); in resiliency_test()
|
D | vmscan.c | 1512 int type = page_is_file_cache(page); in shrink_page_list() local 1514 stat->nr_activate[type] += nr_pages; in shrink_page_list()
|
D | z3fold.c | 1546 .type = "z3fold",
|