Lines Matching refs:gfp
5506 unsigned long __alloc_pages_bulk(gfp_t gfp, int preferred_nid, in __alloc_pages_bulk() argument
5538 if (memcg_kmem_enabled() && (gfp & __GFP_ACCOUNT)) in __alloc_pages_bulk()
5558 gfp &= gfp_allowed_mask; in __alloc_pages_bulk()
5559 alloc_gfp = gfp; in __alloc_pages_bulk()
5560 if (!prepare_alloc_pages(gfp, 0, preferred_nid, nodemask, &ac, &alloc_gfp, &alloc_flags)) in __alloc_pages_bulk()
5562 gfp = alloc_gfp; in __alloc_pages_bulk()
5569 !__cpuset_zone_allowed(zone, gfp)) { in __alloc_pages_bulk()
5581 alloc_flags, gfp)) { in __alloc_pages_bulk()
5620 prep_new_page(page, 0, gfp, 0); in __alloc_pages_bulk()
5641 page = __alloc_pages(gfp, 0, preferred_nid, nodemask); in __alloc_pages_bulk()
5657 struct page *__alloc_pages(gfp_t gfp, unsigned int order, int preferred_nid, in __alloc_pages() argument
5665 trace_android_vh_alloc_pages_entry(&gfp, order, preferred_nid, nodemask); in __alloc_pages()
5671 WARN_ON_ONCE(!(gfp & __GFP_NOWARN)); in __alloc_pages()
5675 gfp &= gfp_allowed_mask; in __alloc_pages()
5683 gfp = current_gfp_context(gfp); in __alloc_pages()
5684 alloc_gfp = gfp; in __alloc_pages()
5685 if (!prepare_alloc_pages(gfp, order, preferred_nid, nodemask, &ac, in __alloc_pages()
5693 alloc_flags |= alloc_flags_nofragment(ac.preferred_zoneref->zone, gfp); in __alloc_pages()
5700 alloc_gfp = gfp; in __alloc_pages()
5712 if (memcg_kmem_enabled() && (gfp & __GFP_ACCOUNT) && page && in __alloc_pages()
5713 unlikely(__memcg_kmem_charge_page(page, gfp, order) != 0)) { in __alloc_pages()
5804 gfp_t gfp = gfp_mask; in __page_frag_cache_refill() local
5814 page = alloc_pages_node(NUMA_NO_NODE, gfp, 0); in __page_frag_cache_refill()