summaryrefslogtreecommitdiff
path: root/mm
diff options
context:
space:
mode:
authorHuaisheng Ye <yehs1@lenovo.com>2018-06-08 03:07:57 +0300
committerLinus Torvalds <torvalds@linux-foundation.org>2018-06-08 03:34:36 +0300
commita380b40abbcecda28037b712fc437e157a1e9b57 (patch)
treecc4aa6111b2942e5fdfda3c4562c74742a86006f /mm
parent3cadfa2b9497abbd3ae11a790d53ed51b4cf8ac5 (diff)
downloadlinux-a380b40abbcecda28037b712fc437e157a1e9b57.tar.xz
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 <yehs1@lenovo.com> Acked-by: Michal Hocko <mhocko@suse.com> Reviewed-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm')
-rw-r--r--mm/page_alloc.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c
index d0d26da12086..96d48d24e1ef 100644
--- a/mm/page_alloc.c
+++ b/mm/page_alloc.c
@@ -4336,8 +4336,7 @@ static inline bool prepare_alloc_pages(gfp_t gfp_mask, unsigned int order,
}
/* Determine whether to spread dirty pages and what the first usable zone */
-static inline void finalise_ac(gfp_t gfp_mask,
- unsigned int order, struct alloc_context *ac)
+static inline void finalise_ac(gfp_t gfp_mask, struct alloc_context *ac)
{
/* Dirty zone balancing only done in the fast path */
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,
if (!prepare_alloc_pages(gfp_mask, order, preferred_nid, nodemask, &ac, &alloc_mask, &alloc_flags))
return NULL;
- finalise_ac(gfp_mask, order, &ac);
+ finalise_ac(gfp_mask, &ac);
/* First allocation attempt */
page = get_page_from_freelist(alloc_mask, order, alloc_flags, &ac);