Joonsoo Kim d92bbc2719 mm/hugetlb: unify migration callbacks
There is no difference between two migration callback functions,
alloc_huge_page_node() and alloc_huge_page_nodemask(), except
__GFP_THISNODE handling.  It's redundant to have two almost similar
functions in order to handle this flag.  So, this patch tries to remove
one by introducing a new argument, gfp_mask, to
alloc_huge_page_nodemask().

After introducing gfp_mask argument, it's caller's job to provide correct
gfp_mask.  So, every callsites for alloc_huge_page_nodemask() are changed
to provide gfp_mask.

Note that it's safe to remove a node id check in alloc_huge_page_node()
since there is no caller passing NUMA_NO_NODE as a node id.

Signed-off-by: Joonsoo Kim <iamjoonsoo.kim@lge.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Reviewed-by: Mike Kravetz <mike.kravetz@oracle.com>
Reviewed-by: Vlastimil Babka <vbabka@suse.cz>
Acked-by: Michal Hocko <mhocko@suse.com>
Cc: Christoph Hellwig <hch@infradead.org>
Cc: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com>
Cc: Roman Gushchin <guro@fb.com>
Link: http://lkml.kernel.org/r/1594622517-20681-4-git-send-email-iamjoonsoo.kim@lge.com
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2020-08-12 10:58:02 -07:00
..
2020-08-09 14:10:26 -07:00
2020-08-12 10:57:57 -07:00
2020-08-12 10:57:58 -07:00
2020-08-12 10:57:58 -07:00
2020-08-12 10:57:57 -07:00
2020-04-07 10:43:41 -07:00
2020-08-12 10:57:56 -07:00
2020-08-07 10:33:50 -07:00
2020-08-07 11:33:26 -07:00
2020-08-12 10:57:58 -07:00
2020-08-12 10:57:58 -07:00
2020-06-08 11:05:55 -07:00
2020-08-07 11:33:28 -07:00
2020-08-12 10:57:58 -07:00
2020-06-04 19:06:24 -07:00
2020-08-12 10:57:58 -07:00