[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v11 5/6] mm: export symbol of next_zone and first_on
From: |
Wei Wang |
Subject: |
[Qemu-devel] [PATCH v11 5/6] mm: export symbol of next_zone and first_online_pgdat |
Date: |
Fri, 9 Jun 2017 18:41:40 +0800 |
This patch enables for_each_zone()/for_each_populated_zone() to be
invoked by a kernel module.
Signed-off-by: Wei Wang <address@hidden>
---
mm/mmzone.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/mm/mmzone.c b/mm/mmzone.c
index a51c0a6..08a2a3a 100644
--- a/mm/mmzone.c
+++ b/mm/mmzone.c
@@ -13,6 +13,7 @@ struct pglist_data *first_online_pgdat(void)
{
return NODE_DATA(first_online_node);
}
+EXPORT_SYMBOL_GPL(first_online_pgdat);
struct pglist_data *next_online_pgdat(struct pglist_data *pgdat)
{
@@ -41,6 +42,7 @@ struct zone *next_zone(struct zone *zone)
}
return zone;
}
+EXPORT_SYMBOL_GPL(next_zone);
static inline int zref_in_nodemask(struct zoneref *zref, nodemask_t *nodes)
{
--
2.7.4
- Re: [Qemu-devel] [PATCH v11 4/6] mm: function to offer a page block on the free list, (continued)
- Re: [Qemu-devel] [PATCH v11 4/6] mm: function to offer a page block on the free list, Wei Wang, 2017/06/21
- Re: [Qemu-devel] [PATCH v11 4/6] mm: function to offer a page block on the free list, Michael S. Tsirkin, 2017/06/20
- Re: [Qemu-devel] [PATCH v11 4/6] mm: function to offer a page block on the free list, David Hildenbrand, 2017/06/20
- Re: [Qemu-devel] [PATCH v11 4/6] mm: function to offer a page block on the free list, Michael S. Tsirkin, 2017/06/20
- Re: [Qemu-devel] [PATCH v11 4/6] mm: function to offer a page block on the free list, David Hildenbrand, 2017/06/20
- Re: [Qemu-devel] [PATCH v11 4/6] mm: function to offer a page block on the free list, Christian Borntraeger, 2017/06/21
- Re: [Qemu-devel] [PATCH v11 4/6] mm: function to offer a page block on the free list, David Hildenbrand, 2017/06/21
[Qemu-devel] [PATCH v11 5/6] mm: export symbol of next_zone and first_online_pgdat,
Wei Wang <=
[Qemu-devel] [PATCH v11 3/6] virtio-balloon: VIRTIO_BALLOON_F_PAGE_CHUNKS, Wei Wang, 2017/06/09
[Qemu-devel] [PATCH v11 6/6] virtio-balloon: VIRTIO_BALLOON_F_CMD_VQ, Wei Wang, 2017/06/09