diff options
author | Minchan Kim <minchan.kim@gmail.com> | 2010-03-10 23:31:22 +0900 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2010-05-17 12:15:24 +0300 |
commit | d4f64b6cad0fc0fb4cec868c6ca6b1325949d08b (patch) | |
tree | 38e1ba149c88af9c957581e65f76f664b2a650c7 /arch/x86/kvm | |
parent | 2ed152afc7ed61830b848b32936e1541a1a57799 (diff) | |
download | kernel-crypto-d4f64b6cad0fc0fb4cec868c6ca6b1325949d08b.tar.gz kernel-crypto-d4f64b6cad0fc0fb4cec868c6ca6b1325949d08b.tar.xz kernel-crypto-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')
-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 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; |