mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 05:31:08 -04:00
KVM: Shrink struct kvm_mmu_memory_cache
Move the 'capacity' member around to make use of the padding hole on 64 bit systems instead of introducing yet another one. This allows us to save 8 bytes per instance for 64 bit builds of which, e.g., x86's struct kvm_vcpu_arch has a few. Signed-off-by: Mathias Krause <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Sean Christopherson <[email protected]>
This commit is contained in:
1 parent
14aa40a1d0
commit
f530b531fb
1 file changed
+1
-1
@@ -91,11 +91,11 @@ struct gfn_to_pfn_cache {
|
||||
* is topped up (__kvm_mmu_topup_memory_cache()).
|
||||
*/
|
||||
struct kvm_mmu_memory_cache {
|
||||
int nobjs;
|
||||
gfp_t gfp_zero;
|
||||
gfp_t gfp_custom;
|
||||
struct kmem_cache *kmem_cache;
|
||||
int capacity;
|
||||
int nobjs;
|
||||
void **objects;
|
||||
};
|
||||
#endif
|
||||
|
||||
Reference in new issue
Block a user