mm/page_isolation: don't pass gfp flags to start_isolate_page_range()
The parameter is unused, so let's stop passing it. Link: https://lkml.kernel.org/r/20241203094732.200195-3-david@redhat.com Signed-off-by: David Hildenbrand <david@redhat.com> Reviewed-by: Zi Yan <ziy@nvidia.com> Reviewed-by: Vlastimil Babka <vbabka@suse.cz> Reviewed-by: Oscar Salvador <osalvador@suse.de> Reviewed-by: Vishal Moola (Oracle) <vishal.moola@gmail.com> Cc: Christophe Leroy <christophe.leroy@csgroup.eu> Cc: Madhavan Srinivasan <maddy@linux.ibm.com> Cc: Michael Ellerman <mpe@ellerman.id.au> Cc: Naveen N Rao <naveen@kernel.org> Cc: Nicholas Piggin <npiggin@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
This commit is contained in:
parent
b7bc81e83b
commit
b9e40605da
4 changed files with 4 additions and 7 deletions
|
@ -31,7 +31,7 @@ bool move_freepages_block_isolate(struct zone *zone, struct page *page,
|
|||
int migratetype);
|
||||
|
||||
int start_isolate_page_range(unsigned long start_pfn, unsigned long end_pfn,
|
||||
int migratetype, int flags, gfp_t gfp_flags);
|
||||
int migratetype, int flags);
|
||||
|
||||
void undo_isolate_page_range(unsigned long start_pfn, unsigned long end_pfn,
|
||||
int migratetype);
|
||||
|
|
|
@ -2000,8 +2000,7 @@ int offline_pages(unsigned long start_pfn, unsigned long nr_pages,
|
|||
/* set above range as isolated */
|
||||
ret = start_isolate_page_range(start_pfn, end_pfn,
|
||||
MIGRATE_MOVABLE,
|
||||
MEMORY_OFFLINE | REPORT_FAILURE,
|
||||
GFP_USER | __GFP_MOVABLE | __GFP_RETRY_MAYFAIL);
|
||||
MEMORY_OFFLINE | REPORT_FAILURE);
|
||||
if (ret) {
|
||||
reason = "failure to isolate range";
|
||||
goto failed_removal_pcplists_disabled;
|
||||
|
|
|
@ -6447,7 +6447,7 @@ int alloc_contig_range_noprof(unsigned long start, unsigned long end,
|
|||
* put back to page allocator so that buddy can use them.
|
||||
*/
|
||||
|
||||
ret = start_isolate_page_range(start, end, migratetype, 0, gfp_mask);
|
||||
ret = start_isolate_page_range(start, end, migratetype, 0);
|
||||
if (ret)
|
||||
goto done;
|
||||
|
||||
|
|
|
@ -442,8 +442,6 @@ failed:
|
|||
* and PageOffline() pages.
|
||||
* REPORT_FAILURE - report details about the failure to
|
||||
* isolate the range
|
||||
* @gfp_flags: GFP flags used for migrating pages that sit across the
|
||||
* range boundaries.
|
||||
*
|
||||
* Making page-allocation-type to be MIGRATE_ISOLATE means free pages in
|
||||
* the range will never be allocated. Any free pages and pages freed in the
|
||||
|
@ -476,7 +474,7 @@ failed:
|
|||
* Return: 0 on success and -EBUSY if any part of range cannot be isolated.
|
||||
*/
|
||||
int start_isolate_page_range(unsigned long start_pfn, unsigned long end_pfn,
|
||||
int migratetype, int flags, gfp_t gfp_flags)
|
||||
int migratetype, int flags)
|
||||
{
|
||||
unsigned long pfn;
|
||||
struct page *page;
|
||||
|
|
Loading…
Add table
Reference in a new issue