diff options
author | Minchan Kim <minchan.kim@gmail.com> | 2010-03-10 15:31:22 +0100 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2010-05-17 11:15:24 +0200 |
commit | d4f64b6cad0fc0fb4cec868c6ca6b1325949d08b (patch) | |
tree | 38e1ba149c88af9c957581e65f76f664b2a650c7 /arch/x86/kvm/mmu.c | |
parent | KVM: cleanup kvm trace (diff) | |
download | linux-d4f64b6cad0fc0fb4cec868c6ca6b1325949d08b.tar.xz linux-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>
Diffstat (limited to 'arch/x86/kvm/mmu.c')
-rw-r--r-- | arch/x86/kvm/mmu.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c index 3af2dfd8778e..4455ddbe36f4 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; |