[Devel] [PATCH RH9 13/33] mm: Export first_online_pgdat() and next_online_pgdat()

Andrey Zhadchenko andrey.zhadchenko at virtuozzo.com
Thu Sep 23 22:08:16 MSK 2021


From: Kirill Tkhai <ktkhai at virtuozzo.com>

This is need for vzstat.

Signed-off-by: Kirill Tkhai <ktkhai at virtuozzo.com>

(cherry picked from vz8 commit a8d3db1b7cd6f785fcc23255e5243fdfd905fcb3)
Signed-off-by: Andrey Zhadchenko <andrey.zhadchenko at virtuozzo.com>
---
 mm/mmzone.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/mm/mmzone.c b/mm/mmzone.c
index eb89d6e..9c458fc 100644
--- a/mm/mmzone.c
+++ b/mm/mmzone.c
@@ -14,6 +14,7 @@ struct pglist_data *first_online_pgdat(void)
 {
 	return NODE_DATA(first_online_node);
 }
+EXPORT_SYMBOL(first_online_pgdat);
 
 struct pglist_data *next_online_pgdat(struct pglist_data *pgdat)
 {
@@ -23,6 +24,7 @@ struct pglist_data *next_online_pgdat(struct pglist_data *pgdat)
 		return NULL;
 	return NODE_DATA(nid);
 }
+EXPORT_SYMBOL(next_online_pgdat);
 
 /*
  * next_zone - helper magic for for_each_zone()
-- 
1.8.3.1



More information about the Devel mailing list