aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mm.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/mm.h')
-rw-r--r--include/linux/mm.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/linux/mm.h b/include/linux/mm.h
index 7477fb59c4f2..8e433bbc6e7e 100644
--- a/include/linux/mm.h
+++ b/include/linux/mm.h
@@ -446,7 +446,11 @@ static inline struct zone *page_zone(struct page *page)
446 446
447static inline unsigned long zone_to_nid(struct zone *zone) 447static inline unsigned long zone_to_nid(struct zone *zone)
448{ 448{
449 return zone->zone_pgdat->node_id; 449#ifdef CONFIG_NUMA
450 return zone->node;
451#else
452 return 0;
453#endif
450} 454}
451 455
452static inline unsigned long page_to_nid(struct page *page) 456static inline unsigned long page_to_nid(struct page *page)