Home
last modified time | relevance | path

Searched refs:limit (Results 1 – 14 of 14) sorted by relevance

/mm/
Dcma.c246 phys_addr_t size, phys_addr_t limit, in cma_declare_contiguous_nid() argument
263 __func__, &size, &base, &limit, &alignment); in cma_declare_contiguous_nid()
292 limit &= ~(alignment - 1); in cma_declare_contiguous_nid()
317 if (limit == 0 || limit > memblock_end) in cma_declare_contiguous_nid()
318 limit = memblock_end; in cma_declare_contiguous_nid()
320 if (base + size > limit) { in cma_declare_contiguous_nid()
323 &size, &base, &limit); in cma_declare_contiguous_nid()
343 if (base < highmem_start && limit > highmem_start) { in cma_declare_contiguous_nid()
345 highmem_start, limit, nid, true); in cma_declare_contiguous_nid()
346 limit = highmem_start; in cma_declare_contiguous_nid()
[all …]
Dslab.c187 unsigned int limit; member
385 .limit = BOOT_CPUCACHE_ENTRIES,
523 static void init_arraycache(struct array_cache *ac, int limit, int batch) in init_arraycache() argument
527 ac->limit = limit; in init_arraycache()
579 int nr = min3(from->avail, max, to->limit - to->avail); in transfer_objects()
608 int limit, gfp_t gfp) in alloc_alien_cache() argument
659 static struct alien_cache **alloc_alien_cache(int node, int limit, gfp_t gfp) in alloc_alien_cache() argument
664 if (limit > 1) in alloc_alien_cache()
665 limit = 12; in alloc_alien_cache()
673 alc_ptr[i] = __alloc_alien_cache(node, limit, 0xbaadf00d, gfp); in alloc_alien_cache()
[all …]
Dpage-writeback.c506 unsigned long limit = node_dirty_limit(pgdat); in node_dirty_ok() local
512 return nr_pages <= limit; in node_dirty_ok()
811 unsigned long limit) in pos_ratio_polynom() argument
817 (limit - setpoint) | 1); in pos_ratio_polynom()
906 unsigned long limit = hard_dirty_limit(dtc_dom(dtc), dtc->thresh); in wb_position_ratio() local
917 if (unlikely(dtc->dirty >= limit)) in wb_position_ratio()
925 setpoint = (freerun + limit) / 2; in wb_position_ratio()
926 pos_ratio = pos_ratio_polynom(setpoint, dtc->dirty, limit); in wb_position_ratio()
1039 wb_thresh = max(wb_thresh, (limit - dtc->dirty) / 8); in wb_position_ratio()
1134 unsigned long limit = dom->dirty_limit; in update_dirty_limit() local
[all …]
Dmemblock.c1640 static phys_addr_t __init_memblock __find_max_addr(phys_addr_t limit) in __find_max_addr() argument
1651 if (limit <= r->size) { in __find_max_addr()
1652 max_addr = r->base + limit; in __find_max_addr()
1655 limit -= r->size; in __find_max_addr()
1661 void __init memblock_enforce_memory_limit(phys_addr_t limit) in memblock_enforce_memory_limit() argument
1665 if (!limit) in memblock_enforce_memory_limit()
1668 max_addr = __find_max_addr(limit); in memblock_enforce_memory_limit()
1709 void __init memblock_mem_limit_remove_map(phys_addr_t limit) in memblock_mem_limit_remove_map() argument
1713 if (!limit) in memblock_mem_limit_remove_map()
1716 max_addr = __find_max_addr(limit); in memblock_mem_limit_remove_map()
[all …]
Dhugetlb_cgroup.c99 unsigned long limit; in hugetlb_cgroup_init() local
115 limit = round_down(PAGE_COUNTER_MAX, in hugetlb_cgroup_init()
120 limit); in hugetlb_cgroup_init()
124 limit); in hugetlb_cgroup_init()
461 unsigned long limit; in hugetlb_cgroup_read_u64_max() local
468 limit = round_down(PAGE_COUNTER_MAX, in hugetlb_cgroup_read_u64_max()
484 if (val == limit) in hugetlb_cgroup_read_u64_max()
Dsparse.c353 unsigned long goal, limit; in sparse_early_usemaps_alloc_pgdat_section() local
366 limit = goal + (1UL << PA_SECTION_SHIFT); in sparse_early_usemaps_alloc_pgdat_section()
369 usage = memblock_alloc_try_nid(size, SMP_CACHE_BYTES, goal, limit, nid); in sparse_early_usemaps_alloc_pgdat_section()
370 if (!usage && limit) { in sparse_early_usemaps_alloc_pgdat_section()
371 limit = 0; in sparse_early_usemaps_alloc_pgdat_section()
Dcompaction.c1329 unsigned int limit = min(1U, freelist_scan_limit(cc) >> 1); in fast_isolate_freepages() local
1347 limit = pageblock_nr_pages >> 1; in fast_isolate_freepages()
1405 limit >>= 1; in fast_isolate_freepages()
1408 if (order_scanned >= limit) in fast_isolate_freepages()
1444 if (order_scanned >= limit) in fast_isolate_freepages()
1445 limit = min(1U, limit >> 1); in fast_isolate_freepages()
1687 unsigned int limit = freelist_scan_limit(cc); in fast_find_migrateblock() local
1736 order >= PAGE_ALLOC_COSTLY_ORDER && !found_block && nr_scanned < limit; in fast_find_migrateblock()
1751 if (nr_scanned++ >= limit) { in fast_find_migrateblock()
Dutil.c475 unsigned long locked_vm, limit; in __account_locked_vm() local
483 limit = task_rlimit(task, RLIMIT_MEMLOCK) >> PAGE_SHIFT; in __account_locked_vm()
484 if (locked_vm + pages > limit) in __account_locked_vm()
Dnommu.c1471 static int limit; in do_munmap() local
1472 if (limit < 5) { in do_munmap()
1476 limit++; in do_munmap()
Dslab.h206 unsigned int limit; member
Dmemcontrol.c1460 unsigned long limit; in mem_cgroup_margin() local
1463 limit = READ_ONCE(memcg->memory.max); in mem_cgroup_margin()
1464 if (count < limit) in mem_cgroup_margin()
1465 margin = limit - count; in mem_cgroup_margin()
1469 limit = READ_ONCE(memcg->memsw.max); in mem_cgroup_margin()
1470 if (count < limit) in mem_cgroup_margin()
1471 margin = min(margin, limit - count); in mem_cgroup_margin()
Dmmap.c2491 unsigned long limit; in acct_stack_growth() local
2493 limit = rlimit(RLIMIT_MEMLOCK); in acct_stack_growth()
2494 limit >>= PAGE_SHIFT; in acct_stack_growth()
2495 if (locked > limit && !capable(CAP_IPC_LOCK)) in acct_stack_growth()
Dslab_common.c983 sinfo.limit, sinfo.batchcount, sinfo.shared); in cache_show()
DKconfig739 the given value, unless the RLIMIT_STACK hard limit is changed to a