[Devel] [PATCH RHEL8 COMMIT] kvm: Remove unused variable from mmu_shrink_scan()

Konstantin Khorenko khorenko at virtuozzo.com
Thu Aug 12 14:31:55 MSK 2021


The commit is pushed to "branch-rh8-4.18.0-305.3.1.vz8.7.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh8-4.18.0-305.3.1.vz8.7.5
------>
commit 80fe498e21fd584b6a348acc81febd1698a62df6
Author: Evgenii Shatokhin <eshatokhin at virtuozzo.com>
Date:   Thu Aug 12 14:31:54 2021 +0300

    kvm: Remove unused variable from mmu_shrink_scan()
    
    "LIST_HEAD(invalid_list)" is no longer used in mmu_shrink_scan()
    since RedHat has backported mainline commit
    ebdb292dac79 ("KVM: x86/mmu: Batch zap MMU pages when shrinking the slab").
    
    Let us remove it.
    
    Found while working on https://jira.sw.ru/browse/PSBM-131982.
    
    mFixes: ms commit ebdb292dac79 ("KVM: x86/mmu: Batch zap MMU pages when
    shrinking the slab")
    
    Signed-off-by: Evgenii Shatokhin <eshatokhin at virtuozzo.com>
---
 arch/x86/kvm/mmu/mmu.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/arch/x86/kvm/mmu/mmu.c b/arch/x86/kvm/mmu/mmu.c
index 5e7ce3cba2bb..d56dc3fad876 100644
--- a/arch/x86/kvm/mmu/mmu.c
+++ b/arch/x86/kvm/mmu/mmu.c
@@ -5730,7 +5730,6 @@ mmu_shrink_scan(struct shrinker *shrink, struct shrink_control *sc)
 	int nr_to_scan = sc->nr_to_scan;
 	unsigned long freed = 0;
 	int idx, found = 0;
-	LIST_HEAD(invalid_list);
 
 	mutex_lock(&kvm_lock);
 


More information about the Devel mailing list