mirror of
https://github.com/torvalds/linux.git
synced 2026-03-13 23:46:14 +01:00
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>
This commit is contained in:
parent
500817bf5e
commit
49d42872d5
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue