summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMinchan Kim <minchan.kim@gmail.com>2010-03-10 23:31:22 +0900
committerAvi Kivity <avi@redhat.com>2010-05-17 12:15:24 +0300
commitd4f64b6cad0fc0fb4cec868c6ca6b1325949d08b (patch)
tree38e1ba149c88af9c957581e65f76f664b2a650c7
parent2ed152afc7ed61830b848b32936e1541a1a57799 (diff)
downloadlinux-3.10-d4f64b6cad0fc0fb4cec868c6ca6b1325949d08b.tar.gz
linux-3.10-d4f64b6cad0fc0fb4cec868c6ca6b1325949d08b.tar.bz2
linux-3.10-d4f64b6cad0fc0fb4cec868c6ca6b1325949d08b.zip
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>
-rw-r--r--arch/x86/kvm/mmu.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c
index 3af2dfd8778..4455ddbe36f 100644
--- a/arch/x86/kvm/mmu.c
+++ b/arch/x86/kvm/mmu.c
@@ -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;