diff options
Diffstat (limited to 'mm/page_alloc.c')
-rw-r--r-- | mm/page_alloc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 5d013526bd0a..8b3e1341b754 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c | |||
@@ -286,7 +286,9 @@ static inline void reset_deferred_meminit(pg_data_t *pgdat) | |||
286 | /* Returns true if the struct page for the pfn is uninitialised */ | 286 | /* Returns true if the struct page for the pfn is uninitialised */ |
287 | static inline bool __meminit early_page_uninitialised(unsigned long pfn) | 287 | static inline bool __meminit early_page_uninitialised(unsigned long pfn) |
288 | { | 288 | { |
289 | if (pfn >= NODE_DATA(early_pfn_to_nid(pfn))->first_deferred_pfn) | 289 | int nid = early_pfn_to_nid(pfn); |
290 | |||
291 | if (node_online(nid) && pfn >= NODE_DATA(nid)->first_deferred_pfn) | ||
290 | return true; | 292 | return true; |
291 | 293 | ||
292 | return false; | 294 | return false; |