diff options
Diffstat (limited to 'include/linux/mmzone.h')
-rw-r--r-- | include/linux/mmzone.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/mmzone.h b/include/linux/mmzone.h index 4733d35d8223..b79633d3a97b 100644 --- a/include/linux/mmzone.h +++ b/include/linux/mmzone.h | |||
@@ -284,6 +284,8 @@ typedef struct pglist_data { | |||
284 | 284 | ||
285 | #define node_present_pages(nid) (NODE_DATA(nid)->node_present_pages) | 285 | #define node_present_pages(nid) (NODE_DATA(nid)->node_present_pages) |
286 | #define node_spanned_pages(nid) (NODE_DATA(nid)->node_spanned_pages) | 286 | #define node_spanned_pages(nid) (NODE_DATA(nid)->node_spanned_pages) |
287 | #define pgdat_page_nr(pgdat, pagenr) ((pgdat)->node_mem_map + (pagenr)) | ||
288 | #define nid_page_nr(nid, pagenr) pgdat_page_nr(NODE_DATA(nid),(pagenr)) | ||
287 | 289 | ||
288 | extern struct pglist_data *pgdat_list; | 290 | extern struct pglist_data *pgdat_list; |
289 | 291 | ||