mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 09:36:22 +02:00
mm/page_alloc: cleanup flag vars in alloc_pages_bulk_noprof()
These two variables are redundant, squash them to align alloc_pages_bulk_noprof() with the style used in alloc_frozen_pages_nolock_noprof(). Link: https://lore.kernel.org/20260331-b4-prepare_alloc_pages-flags-v1-1-ea2416def698@google.com Signed-off-by: Brendan Jackman <jackmanb@google.com> Reviewed-by: Suren Baghdasaryan <surenb@google.com> Reviewed-by: Vishal Moola <vishal.moola@gmail.com> Reviewed-by: Vlastimil Babka (SUSE) <vbabka@kernel.org> Reviewed-by: Anshuman Khandual <anshuman.khandual@arm.com> Cc: Johannes Weiner <hannes@cmpxchg.org> Cc: Michal Hocko <mhocko@suse.com> Cc: Zi Yan <ziy@nvidia.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
This commit is contained in:
parent
c70a9f639b
commit
1d05e1f6ac
|
|
@ -5054,7 +5054,6 @@ unsigned long alloc_pages_bulk_noprof(gfp_t gfp, int preferred_nid,
|
|||
struct per_cpu_pages *pcp;
|
||||
struct list_head *pcp_list;
|
||||
struct alloc_context ac;
|
||||
gfp_t alloc_gfp;
|
||||
unsigned int alloc_flags = ALLOC_WMARK_LOW;
|
||||
int nr_populated = 0, nr_account = 0;
|
||||
|
||||
|
|
@ -5095,10 +5094,8 @@ unsigned long alloc_pages_bulk_noprof(gfp_t gfp, int preferred_nid,
|
|||
|
||||
/* May set ALLOC_NOFRAGMENT, fragmentation will return 1 page. */
|
||||
gfp &= gfp_allowed_mask;
|
||||
alloc_gfp = gfp;
|
||||
if (!prepare_alloc_pages(gfp, 0, preferred_nid, nodemask, &ac, &alloc_gfp, &alloc_flags))
|
||||
if (!prepare_alloc_pages(gfp, 0, preferred_nid, nodemask, &ac, &gfp, &alloc_flags))
|
||||
goto out;
|
||||
gfp = alloc_gfp;
|
||||
|
||||
/* Find an allowed local zone that meets the low watermark. */
|
||||
z = ac.preferred_zoneref;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user