mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-09 14:26:39 +07:00
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: Minchan Kim <minchan.kim@gmail.com> Cc: Avi Kivity<avi@redhat.com> Signed-off-by: Avi Kivity <avi@redhat.com>
This commit is contained in:
parent
2ed152afc7
commit
d4f64b6cad
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user