[Devel] [PATCH RH8] kvm: Remove unused variable from mmu_shrink_scan()
Evgenii Shatokhin
eshatokhin at virtuozzo.com
Mon Aug 2 23:21:54 MSK 2021
"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.
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);
--
2.29.0
More information about the Devel
mailing list