KVM: MMU: Rename kvm_mmu_free_some_pages() to make_mmu_pages_available()
authorTakuya Yoshikawa <yoshikawa_takuya_b1@lab.ntt.co.jp>
Thu, 21 Mar 2013 10:34:27 +0000 (19:34 +0900)
committerMarcelo Tosatti <mtosatti@redhat.com>
Thu, 21 Mar 2013 22:45:01 +0000 (19:45 -0300)
commit81f4f76bbc712a2dff8bb020057c554e285370e1
tree14951f49387558deb4258cce5af8c98df9c9f7af
parent7ddca7e43c8f28f9419da81a0e7730b66aa60fe9
KVM: MMU: Rename kvm_mmu_free_some_pages() to make_mmu_pages_available()

The current name "kvm_mmu_free_some_pages" should be used for something
that actually frees some shadow pages, as we expect from the name, but
what the function is doing is to make some, KVM_MIN_FREE_MMU_PAGES,
shadow pages available: it does nothing when there are enough.

This patch changes the name to reflect this meaning better; while doing
this renaming, the code in the wrapper function is inlined into the main
body since the whole function will be inlined into the only caller now.

Signed-off-by: Takuya Yoshikawa <yoshikawa_takuya_b1@lab.ntt.co.jp>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/kvm/mmu.c
arch/x86/kvm/mmu.h