Skip to content

Commit a380b40

Browse files
LenovoOpenLabtorvalds
authored andcommitted
mm/page_alloc.c: remove useless parameter of finalise_ac()
finalise_ac() has parameter order which is not used at all. Remove it. Signed-off-by: Huaisheng Ye <[email protected]> Acked-by: Michal Hocko <[email protected]> Reviewed-by: Andrew Morton <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent 3cadfa2 commit a380b40

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

mm/page_alloc.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4336,8 +4336,7 @@ static inline bool prepare_alloc_pages(gfp_t gfp_mask, unsigned int order,
43364336
}
43374337

43384338
/* Determine whether to spread dirty pages and what the first usable zone */
4339-
static inline void finalise_ac(gfp_t gfp_mask,
4340-
unsigned int order, struct alloc_context *ac)
4339+
static inline void finalise_ac(gfp_t gfp_mask, struct alloc_context *ac)
43414340
{
43424341
/* Dirty zone balancing only done in the fast path */
43434342
ac->spread_dirty_pages = (gfp_mask & __GFP_WRITE);
@@ -4368,7 +4367,7 @@ __alloc_pages_nodemask(gfp_t gfp_mask, unsigned int order, int preferred_nid,
43684367
if (!prepare_alloc_pages(gfp_mask, order, preferred_nid, nodemask, &ac, &alloc_mask, &alloc_flags))
43694368
return NULL;
43704369

4371-
finalise_ac(gfp_mask, order, &ac);
4370+
finalise_ac(gfp_mask, &ac);
43724371

43734372
/* First allocation attempt */
43744373
page = get_page_from_freelist(alloc_mask, order, alloc_flags, &ac);

0 commit comments

Comments
 (0)