Home
last modified time | relevance | path

Searched refs:max (Results 1 – 25 of 45) sorted by relevance

12

/mm/
Dreadahead.c325 static unsigned long get_init_ra_size(unsigned long size, unsigned long max) in get_init_ra_size() argument
329 if (newsize <= max / 32) in get_init_ra_size()
331 else if (newsize <= max / 4) in get_init_ra_size()
334 newsize = max; in get_init_ra_size()
344 unsigned long max) in get_next_ra_size() argument
348 if (cur < max / 16) in get_next_ra_size()
350 if (cur <= max / 2) in get_next_ra_size()
352 return max; in get_next_ra_size()
401 pgoff_t index, unsigned long max) in count_history_pages() argument
406 head = page_cache_prev_miss(mapping, index - 1, max); in count_history_pages()
[all …]
Dpage_counter.c123 if (new > c->max) { in page_counter_try_charge()
198 old = xchg(&counter->max, nr_pages); in page_counter_set_max()
203 counter->max = old; in page_counter_set_max()
251 int page_counter_memparse(const char *buf, const char *max, in page_counter_memparse() argument
257 if (!strcmp(buf, max)) { in page_counter_memparse()
Dpercpu-internal.h160 max(pcpu_stats.nr_max_alloc, pcpu_stats.nr_cur_alloc); in pcpu_stats_area_alloc()
164 max(pcpu_stats.max_alloc_size, size); in pcpu_stats_area_alloc()
167 chunk->max_alloc_size = max(chunk->max_alloc_size, size); in pcpu_stats_area_alloc()
197 max(pcpu_stats.nr_max_chunks, pcpu_stats.nr_chunks); in pcpu_stats_chunk_alloc()
Dmemblock.c114 .memory.max = INIT_MEMBLOCK_REGIONS,
119 .reserved.max = INIT_MEMBLOCK_RESERVED_REGIONS,
130 .max = INIT_PHYSMEM_REGIONS,
295 end = max(start, end); in memblock_find_in_range_node()
368 memblock.reserved.max); in memblock_discard()
378 memblock.memory.max); in memblock_discard()
421 old_size = type->max * sizeof(struct memblock_region); in memblock_double_array()
457 type->name, type->max, type->max * 2); in memblock_double_array()
463 type->name, type->max * 2, &addr, &new_end); in memblock_double_array()
471 memset(new_array + type->max, 0, old_size); in memblock_double_array()
[all …]
Dhugetlb_cgroup.c440 return (u64)counter->max * PAGE_SIZE; in hugetlb_cgroup_read_u64()
442 return (u64)rsvd_counter->max * PAGE_SIZE; in hugetlb_cgroup_read_u64()
483 val = (u64)counter->max; in hugetlb_cgroup_read_u64_max()
500 const char *max) in hugetlb_cgroup_write() argument
511 ret = page_counter_memparse(buf, max, &nr_pages); in hugetlb_cgroup_write()
592 long max; in __hugetlb_events_show() local
599 max = atomic_long_read(&h_cg->events_local[idx][HUGETLB_MAX]); in __hugetlb_events_show()
601 max = atomic_long_read(&h_cg->events[idx][HUGETLB_MAX]); in __hugetlb_events_show()
603 seq_printf(seq, "max %lu\n", max); in __hugetlb_events_show()
Dmmu_gather.c36 batch->max = MAX_GATHER_BATCH; in tlb_next_batch()
82 if (batch->nr == batch->max) { in __tlb_remove_page_size()
87 VM_BUG_ON_PAGE(batch->nr > batch->max, page); in __tlb_remove_page_size()
260 tlb->local.max = ARRAY_SIZE(tlb->__pages); in __tlb_gather_mmu()
Dmemcontrol.c1367 limit = READ_ONCE(memcg->memory.max); in mem_cgroup_margin()
1373 limit = READ_ONCE(memcg->memsw.max); in mem_cgroup_margin()
1605 K((u64)READ_ONCE(memcg->memory.max)), memcg->memory.failcnt); in mem_cgroup_print_oom_meminfo()
1609 K((u64)READ_ONCE(memcg->swap.max)), memcg->swap.failcnt); in mem_cgroup_print_oom_meminfo()
1613 K((u64)memcg->memsw.max), memcg->memsw.failcnt); in mem_cgroup_print_oom_meminfo()
1616 K((u64)memcg->kmem.max), memcg->kmem.failcnt); in mem_cgroup_print_oom_meminfo()
1634 unsigned long max = READ_ONCE(memcg->memory.max); in mem_cgroup_get_max() local
1638 max += min(READ_ONCE(memcg->swap.max), in mem_cgroup_get_max()
1643 unsigned long swap = READ_ONCE(memcg->memsw.max) - max; in mem_cgroup_get_max()
1645 max += min(swap, (unsigned long)total_swap_pages); in mem_cgroup_get_max()
[all …]
Dpage-writeback.c47 #define MAX_PAUSE max(HZ/5, 1)
58 #define BANDWIDTH_INTERVAL max(HZ/5, 1)
189 unsigned long long max = wb->bdi->max_ratio; in wb_min_max_ratio() local
200 if (max < 100) { in wb_min_max_ratio()
201 max *= this_bw; in wb_min_max_ratio()
202 max = div64_ul(max, tot_bw); in wb_min_max_ratio()
207 *maxp = max; in wb_min_max_ratio()
713 return max(thresh, dom->dirty_limit); in hard_dirty_limit()
1030 wb_thresh = max(wb_thresh, (limit - dtc->dirty) / 8); in wb_position_ratio()
1111 avg = max(avg, 1LU); in wb_update_write_bandwidth()
[all …]
Dswap_cgroup.c43 unsigned long idx, max; in swap_cgroup_prepare() local
58 max = idx; in swap_cgroup_prepare()
59 for (idx = 0; idx < max; idx++) in swap_cgroup_prepare()
Dmapping_dirty_helpers.c46 wpwalk->tlbflush_end = max(wpwalk->tlbflush_end, in wp_pte()
105 wpwalk->tlbflush_end = max(wpwalk->tlbflush_end, in clean_record_pte()
110 cwalk->end = max(cwalk->end, pgoff + 1); in clean_record_pte()
Dswapfile.c624 unsigned long tmp, max; in scan_swap_map_try_ssd_cluster() local
652 max = min_t(unsigned long, si->max, in scan_swap_map_try_ssd_cluster()
654 if (tmp < max) { in scan_swap_map_try_ssd_cluster()
656 while (tmp < max) { in scan_swap_map_try_ssd_cluster()
663 if (tmp >= max) { in scan_swap_map_try_ssd_cluster()
700 si->lowest_bit = si->max; in swap_range_alloc()
1140 if (offset >= p->max) in __swap_info_get()
1289 if (offset >= si->max) in get_swap_device()
1651 map_swapcount = max(map_swapcount, mapcount + swapcount); in page_trans_huge_map_swapcount()
2141 for (i = prev + 1; i < si->max; i++) { in find_next_to_unuse()
[all …]
Dpercpu-stats.c41 max_nr_alloc = max(max_nr_alloc, chunk->nr_alloc); in find_max_nr_alloc()
113 max_frag = max(max_frag, -1 * (*p)); in chunk_map_stats()
Dfilemap.c491 pgoff_t max = end_byte >> PAGE_SHIFT; in filemap_range_has_page() local
498 page = xas_find(&xas, max); in filemap_range_has_page()
664 pgoff_t max = end_byte >> PAGE_SHIFT; in filemap_range_needs_writeback() local
676 xas_for_each(&xas, page, max) { in filemap_range_needs_writeback()
1975 static inline struct page *find_get_entry(struct xa_state *xas, pgoff_t max, in find_get_entry() argument
1982 page = xas_find(xas, max); in find_get_entry()
1984 page = xas_find_marked(xas, max, mark); in find_get_entry()
2339 pgoff_t index, pgoff_t max, struct pagevec *pvec) in filemap_get_read_batch() argument
2348 if (xas.xa_index > max || xa_is_value(head)) in filemap_get_read_batch()
2366 if (xas.xa_index - 1 >= max) in filemap_get_read_batch()
[all …]
Dpage_alloc.c2820 max_boost = max(pageblock_nr_pages, max_boost); in boost_watermark()
3302 batch = max(batch >> order, 2); in get_populated_pcp_list()
7276 high = max(high, batch << 2); in zone_highsize()
7350 new_batch = max(1, zone_batchsize(zone)); in zone_set_pageset_high_and_batch()
7478 *end_pfn = max(*end_pfn, this_end_pfn); in get_pfn_range_for_nid()
7573 *zone_start_pfn = max(*zone_start_pfn, node_start_pfn); in zone_spanned_pages_in_node()
8226 required_kernelcore = max(required_kernelcore, corepages); in find_zone_movable_pfns_for_nodes()
8264 start_pfn = max(start_pfn, zone_movable_pfn[nid]); in find_zone_movable_pfns_for_nodes()
8408 end_pfn = max(max_zone_pfn[zone], start_pfn); in free_area_init()
8729 long max = 0; in calculate_totalreserve_pages() local
[all …]
Dpage_io.c105 page_no < sis->max) { in generic_swapfile_activate()
164 sis->max = page_no; in generic_swapfile_activate()
Dcompaction.c294 block_pfn = max(block_pfn, zone->zone_start_pfn); in __reset_isolation_pfn()
1407 start_pfn = max(pageblock_start_pfn(pfn), cc->zone->zone_start_pfn); in fast_isolate_around()
1444 unsigned int limit = max(1U, freelist_scan_limit(cc) >> 1); in fast_isolate_freepages()
1506 highest = max(pageblock_start_pfn(pfn), in fast_isolate_freepages()
1560 limit = max(1U, limit >> 1); in fast_isolate_freepages()
2091 wmark_low = max(100U - sysctl_compaction_proactiveness, 5U); in fragmentation_score_wmark()
2669 rc = max(status, rc); in try_to_compact_pages()
Dslub.c3804 for (order = max(min_order, (unsigned int)get_order(min_objects * size)); in slab_order()
4183 if (oo_objects(s->oo) > oo_objects(s->max)) in calculate_sizes()
4184 s->max = s->oo; in calculate_sizes()
4896 s->object_size = max(s->object_size, size); in __kmem_cache_alias()
4897 s->inuse = max(s->inuse, ALIGN(size, sizeof(void *))); in __kmem_cache_alias()
5105 unsigned long max; member
5115 if (t->max) in free_loc_track()
5117 get_order(sizeof(struct location) * t->max)); in free_loc_track()
5120 static int alloc_loc_track(struct loc_track *t, unsigned long max, gfp_t flags) in alloc_loc_track() argument
5125 order = get_order(sizeof(struct location) * max); in alloc_loc_track()
[all …]
Dslab_common.c163 align = max(align, ralign); in calculate_alignment()
166 align = max(align, arch_slab_minalign()); in calculate_alignment()
665 align = max(align, size); in create_boot_cache()
Dmmap.c317 unsigned long max = vma_compute_gap(vma), subtree_gap; in vma_compute_subtree_gap() local
321 if (subtree_gap > max) in vma_compute_subtree_gap()
322 max = subtree_gap; in vma_compute_subtree_gap()
327 if (subtree_gap > max) in vma_compute_subtree_gap()
328 max = subtree_gap; in vma_compute_subtree_gap()
330 return max; in vma_compute_subtree_gap()
622 max(addr, vma->vm_start)) >> PAGE_SHIFT; in count_vma_pages_range()
2214 info.low_limit = max(PAGE_SIZE, mmap_min_addr); in arch_get_unmapped_area_topdown()
Dcma_debug.c62 maxchunk = max(end - start, maxchunk); in cma_maxchunk_get()
Dswap_state.c637 if (end_offset >= si->max) in swap_cluster_readahead()
638 end_offset = si->max - 1; in swap_cluster_readahead()
Dutil.c101 char *kstrndup(const char *s, size_t max, gfp_t gfp) in kstrndup() argument
109 len = strnlen(s, max); in kstrndup()
Dprocess_vm_access.c177 nr_pages = max(nr_pages, nr_pages_iov); in process_vm_rw_core()
Dslab.c156 #define REDZONE_ALIGN max(BYTES_PER_WORD, __alignof__(unsigned long long))
576 struct array_cache *from, unsigned int max) in transfer_objects() argument
579 int nr = min3(from->avail, max, to->limit - to->avail); in transfer_objects()
3388 int max = shared_array->limit - shared_array->avail; in cache_flusharray() local
3389 if (max) { in cache_flusharray()
3390 if (batchcount > max) in cache_flusharray()
3391 batchcount = max; in cache_flusharray()
/mm/damon/
Dpaddr.c204 max_nr_accesses = max(r->nr_accesses, max_nr_accesses); in damon_pa_check_accesses()

12