diff options
author | David Hildenbrand <david@redhat.com> | 2021-06-02 20:57:15 +0200 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2021-07-08 07:49:02 -0400 |
commit | 49d42872d520365df619e5092ff7fb225e3079b3 (patch) | |
tree | 6f7b70da856dcb0252f0236cb0f1158ce04f5e5b /drivers/virtio | |
parent | 500817bf5e110ad9b7138bc582971bb7ee77d6f7 (diff) | |
download | linux-49d42872d520365df619e5092ff7fb225e3079b3.tar.gz linux-49d42872d520365df619e5092ff7fb225e3079b3.tar.bz2 linux-49d42872d520365df619e5092ff7fb225e3079b3.zip |
virtio-mem: use page_zonenum() in virtio_mem_fake_offline()
Let's use page_zonenum() instead of zone_idx(page_zone()).
Signed-off-by: David Hildenbrand <david@redhat.com>
Link: https://lore.kernel.org/r/20210602185720.31821-3-david@redhat.com
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'drivers/virtio')
-rw-r--r-- | drivers/virtio/virtio_mem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/virtio/virtio_mem.c b/drivers/virtio/virtio_mem.c index 3bf08b5bb359..1d4b1e25ac8b 100644 --- a/drivers/virtio/virtio_mem.c +++ b/drivers/virtio/virtio_mem.c @@ -1135,7 +1135,7 @@ static void virtio_mem_fake_online(unsigned long pfn, unsigned long nr_pages) */ static int virtio_mem_fake_offline(unsigned long pfn, unsigned long nr_pages) { - const bool is_movable = zone_idx(page_zone(pfn_to_page(pfn))) == + const bool is_movable = page_zonenum(pfn_to_page(pfn)) == ZONE_MOVABLE; int rc, retry_count; |