File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -2107,6 +2107,7 @@ static struct page *alloc_misplaced_dst_page_thp(struct page *page,
2107
2107
static int numamigrate_isolate_page (pg_data_t * pgdat , struct page * page )
2108
2108
{
2109
2109
int page_lru ;
2110
+ int nr_pages = thp_nr_pages (page );
2110
2111
2111
2112
VM_BUG_ON_PAGE (compound_order (page ) && !PageTransHuge (page ), page );
2112
2113
@@ -2115,15 +2116,15 @@ static int numamigrate_isolate_page(pg_data_t *pgdat, struct page *page)
2115
2116
return 0 ;
2116
2117
2117
2118
/* Avoid migrating to a node that is nearly full */
2118
- if (!migrate_balanced_pgdat (pgdat , compound_nr ( page ) ))
2119
+ if (!migrate_balanced_pgdat (pgdat , nr_pages ))
2119
2120
return 0 ;
2120
2121
2121
2122
if (isolate_lru_page (page ))
2122
2123
return 0 ;
2123
2124
2124
2125
page_lru = page_is_file_lru (page );
2125
2126
mod_node_page_state (page_pgdat (page ), NR_ISOLATED_ANON + page_lru ,
2126
- thp_nr_pages ( page ) );
2127
+ nr_pages );
2127
2128
2128
2129
/*
2129
2130
* Isolating the page has taken another reference, so the
You can’t perform that action at this time.
0 commit comments