Lines Matching refs:alloc_flags
2450 unsigned int alloc_flags) in prep_new_page() argument
2463 if (alloc_flags & ALLOC_NO_WATERMARKS) in prep_new_page()
2677 unsigned int alloc_flags, int start_type, bool whole_block) in steal_suitable_fallback() argument
2703 if (boost_watermark(zone) && (alloc_flags & ALLOC_KSWAPD)) in steal_suitable_fallback()
2919 unsigned int alloc_flags) in __rmqueue_fallback() argument
2933 if (alloc_flags & ALLOC_NOFRAGMENT) in __rmqueue_fallback()
2985 steal_suitable_fallback(zone, page, alloc_flags, start_migratetype, in __rmqueue_fallback()
3001 unsigned int alloc_flags) in __rmqueue() argument
3011 if (alloc_flags & ALLOC_CMA && in __rmqueue()
3022 if (alloc_flags & ALLOC_CMA) in __rmqueue()
3026 alloc_flags)) in __rmqueue()
3039 int migratetype, unsigned int alloc_flags) in rmqueue_bulk() argument
3050 alloc_flags); in rmqueue_bulk()
3640 unsigned int alloc_flags, in __rmqueue_pcplist() argument
3662 migratetype, alloc_flags); in __rmqueue_pcplist()
3681 unsigned int alloc_flags) in rmqueue_pcplist() argument
3698 page = __rmqueue_pcplist(zone, order, migratetype, alloc_flags, pcp, list); in rmqueue_pcplist()
3713 gfp_t gfp_flags, unsigned int alloc_flags, in rmqueue() argument
3724 if (!IS_ENABLED(CONFIG_CMA) || alloc_flags & ALLOC_CMA || in rmqueue()
3727 gfp_flags, migratetype, alloc_flags); in rmqueue()
3747 if (order > 0 && alloc_flags & ALLOC_HARDER) in rmqueue()
3750 page = __rmqueue(zone, order, migratetype, alloc_flags); in rmqueue()
3855 unsigned int order, unsigned int alloc_flags) in __zone_watermark_unusable_free() argument
3857 const bool alloc_harder = (alloc_flags & (ALLOC_HARDER|ALLOC_OOM)); in __zone_watermark_unusable_free()
3870 if (!(alloc_flags & ALLOC_CMA)) in __zone_watermark_unusable_free()
3884 int highest_zoneidx, unsigned int alloc_flags, in __zone_watermark_ok() argument
3889 const bool alloc_harder = (alloc_flags & (ALLOC_HARDER|ALLOC_OOM)); in __zone_watermark_ok()
3892 free_pages -= __zone_watermark_unusable_free(z, order, alloc_flags); in __zone_watermark_ok()
3894 if (alloc_flags & ALLOC_HIGH) in __zone_watermark_ok()
3904 if (alloc_flags & ALLOC_OOM) in __zone_watermark_ok()
3936 if ((alloc_flags & ALLOC_CMA) && in __zone_watermark_ok()
3948 int highest_zoneidx, unsigned int alloc_flags) in zone_watermark_ok() argument
3950 return __zone_watermark_ok(z, order, mark, highest_zoneidx, alloc_flags, in zone_watermark_ok()
3956 unsigned int alloc_flags, gfp_t gfp_mask) in zone_watermark_fast() argument
3971 reserved = __zone_watermark_unusable_free(z, 0, alloc_flags); in zone_watermark_fast()
3979 if (__zone_watermark_ok(z, order, mark, highest_zoneidx, alloc_flags, in zone_watermark_fast()
3989 && ((alloc_flags & ALLOC_WMARK_MASK) == WMARK_MIN))) { in zone_watermark_fast()
3992 alloc_flags, free_pages); in zone_watermark_fast()
4036 unsigned int alloc_flags; in alloc_flags_nofragment() local
4042 alloc_flags = (__force int) (gfp_mask & __GFP_KSWAPD_RECLAIM); in alloc_flags_nofragment()
4046 return alloc_flags; in alloc_flags_nofragment()
4049 return alloc_flags; in alloc_flags_nofragment()
4058 return alloc_flags; in alloc_flags_nofragment()
4060 alloc_flags |= ALLOC_NOFRAGMENT; in alloc_flags_nofragment()
4062 return alloc_flags; in alloc_flags_nofragment()
4067 unsigned int alloc_flags) in gfp_to_alloc_flags_cma() argument
4071 alloc_flags |= ALLOC_CMA; in gfp_to_alloc_flags_cma()
4073 return alloc_flags; in gfp_to_alloc_flags_cma()
4081 get_page_from_freelist(gfp_t gfp_mask, unsigned int order, int alloc_flags, in get_page_from_freelist() argument
4095 no_fallback = alloc_flags & ALLOC_NOFRAGMENT; in get_page_from_freelist()
4103 (alloc_flags & ALLOC_CPUSET) && in get_page_from_freelist()
4146 alloc_flags &= ~ALLOC_NOFRAGMENT; in get_page_from_freelist()
4151 mark = wmark_pages(zone, alloc_flags & ALLOC_WMARK_MASK); in get_page_from_freelist()
4153 ac->highest_zoneidx, alloc_flags, in get_page_from_freelist()
4169 if (alloc_flags & ALLOC_NO_WATERMARKS) in get_page_from_freelist()
4187 ac->highest_zoneidx, alloc_flags)) in get_page_from_freelist()
4196 gfp_mask, alloc_flags, ac->migratetype); in get_page_from_freelist()
4198 prep_new_page(page, order, gfp_mask, alloc_flags); in get_page_from_freelist()
4204 if (unlikely(order && (alloc_flags & ALLOC_HARDER))) in get_page_from_freelist()
4224 alloc_flags &= ~ALLOC_NOFRAGMENT; in get_page_from_freelist()
4277 unsigned int alloc_flags, in __alloc_pages_cpuset_fallback() argument
4283 alloc_flags|ALLOC_CPUSET, ac); in __alloc_pages_cpuset_fallback()
4290 alloc_flags, ac); in __alloc_pages_cpuset_fallback()
4392 unsigned int alloc_flags, const struct alloc_context *ac, in __alloc_pages_direct_compact() argument
4406 *compact_result = try_to_compact_pages(gfp_mask, order, alloc_flags, ac, in __alloc_pages_direct_compact()
4423 prep_new_page(page, order, gfp_mask, alloc_flags); in __alloc_pages_direct_compact()
4427 page = get_page_from_freelist(gfp_mask, order, alloc_flags, ac); in __alloc_pages_direct_compact()
4450 should_compact_retry(struct alloc_context *ac, int order, int alloc_flags, in should_compact_retry() argument
4483 ret = compaction_zonelist_suitable(ac, order, alloc_flags); in should_compact_retry()
4532 unsigned int alloc_flags, const struct alloc_context *ac, in __alloc_pages_direct_compact() argument
4540 should_compact_retry(struct alloc_context *ac, unsigned int order, int alloc_flags, in should_compact_retry() argument
4560 ac->highest_zoneidx, alloc_flags)) in should_compact_retry()
4655 unsigned int alloc_flags, const struct alloc_context *ac, in __alloc_pages_direct_reclaim() argument
4668 page = get_page_from_freelist(gfp_mask, order, alloc_flags, ac); in __alloc_pages_direct_reclaim()
4709 unsigned int alloc_flags = ALLOC_WMARK_MIN | ALLOC_CPUSET; in gfp_to_alloc_flags() local
4725 alloc_flags |= (__force int) in gfp_to_alloc_flags()
4734 alloc_flags |= ALLOC_HARDER; in gfp_to_alloc_flags()
4739 alloc_flags &= ~ALLOC_CPUSET; in gfp_to_alloc_flags()
4741 alloc_flags |= ALLOC_HARDER; in gfp_to_alloc_flags()
4743 alloc_flags = gfp_to_alloc_flags_cma(gfp_mask, alloc_flags); in gfp_to_alloc_flags()
4745 return alloc_flags; in gfp_to_alloc_flags()
4802 struct alloc_context *ac, int alloc_flags, in should_reclaim_retry() argument
4849 ac->highest_zoneidx, alloc_flags, available); in should_reclaim_retry()
4912 unsigned int alloc_flags; in __alloc_pages_slowpath() local
4940 alloc_flags = gfp_to_alloc_flags(gfp_mask); in __alloc_pages_slowpath()
4966 if (alloc_flags & ALLOC_KSWAPD) in __alloc_pages_slowpath()
4973 page = get_page_from_freelist(gfp_mask, order, alloc_flags, ac); in __alloc_pages_slowpath()
4991 alloc_flags, ac, in __alloc_pages_slowpath()
5034 if (alloc_flags & ALLOC_KSWAPD) in __alloc_pages_slowpath()
5039 alloc_flags = gfp_to_alloc_flags_cma(gfp_mask, reserve_flags); in __alloc_pages_slowpath()
5046 if (!(alloc_flags & ALLOC_CPUSET) || reserve_flags) { in __alloc_pages_slowpath()
5053 page = get_page_from_freelist(gfp_mask, order, alloc_flags, ac); in __alloc_pages_slowpath()
5066 page = __alloc_pages_direct_reclaim(gfp_mask, order, alloc_flags, ac, in __alloc_pages_slowpath()
5072 page = __alloc_pages_direct_compact(gfp_mask, order, alloc_flags, ac, in __alloc_pages_slowpath()
5088 if (should_reclaim_retry(gfp_mask, order, ac, alloc_flags, in __alloc_pages_slowpath()
5099 should_compact_retry(ac, order, alloc_flags, in __alloc_pages_slowpath()
5116 (alloc_flags & ALLOC_OOM || in __alloc_pages_slowpath()
5181 unsigned int *alloc_flags) in prepare_alloc_pages() argument
5197 *alloc_flags |= ALLOC_CPUSET; in prepare_alloc_pages()
5208 *alloc_flags = gfp_to_alloc_flags_cma(gfp_mask, *alloc_flags); in prepare_alloc_pages()
5257 unsigned int alloc_flags = ALLOC_WMARK_LOW; in __alloc_pages_bulk() local
5298 if (!prepare_alloc_pages(gfp, 0, preferred_nid, nodemask, &ac, &alloc_gfp, &alloc_flags)) in __alloc_pages_bulk()
5306 if (cpusets_enabled() && (alloc_flags & ALLOC_CPUSET) && in __alloc_pages_bulk()
5316 mark = wmark_pages(zone, alloc_flags & ALLOC_WMARK_MASK) + nr_pages; in __alloc_pages_bulk()
5319 alloc_flags, gfp)) { in __alloc_pages_bulk()
5344 page = __rmqueue_pcplist(zone, 0, ac.migratetype, alloc_flags, in __alloc_pages_bulk()
5394 unsigned int alloc_flags = ALLOC_WMARK_LOW; in __alloc_pages() local
5416 &alloc_gfp, &alloc_flags)) in __alloc_pages()
5423 alloc_flags |= alloc_flags_nofragment(ac.preferred_zoneref->zone, gfp); in __alloc_pages()
5426 page = get_page_from_freelist(alloc_gfp, order, alloc_flags, &ac); in __alloc_pages()