Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d4f64b6c authored by Minchan Kim's avatar Minchan Kim Committed by Avi Kivity
Browse files

KVM: remove redundant initialization of page->private



The prep_new_page() in page allocator calls set_page_private(page, 0).
So we don't need to reinitialize private of page.

Signed-off-by: default avatarMinchan Kim <minchan.kim@gmail.com>
Cc: Avi Kivity<avi@redhat.com>
Signed-off-by: default avatarAvi Kivity <avi@redhat.com>
parent 2ed152af
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -326,7 +326,6 @@ static int mmu_topup_memory_cache_page(struct kvm_mmu_memory_cache *cache,
		page = alloc_page(GFP_KERNEL);
		if (!page)
			return -ENOMEM;
		set_page_private(page, 0);
		cache->objects[cache->nobjs++] = page_address(page);
	}
	return 0;