mirror of
https://github.com/Dasharo/linux.git
synced 2026-03-06 15:25:10 -08:00
KVM: Rename lru_slot to last_used_slot
lru_slot is used to keep track of the index of the most-recently used memslot. The correct acronym would be "mru" but that is not a common acronym. So call it last_used_slot which is a bit more obvious. Suggested-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: David Matlack <dmatlack@google.com> Message-Id: <20210804222844.1419481-2-dmatlack@google.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
committed by
Paolo Bonzini
parent
319afe6856
commit
87689270b1
@@ -1224,8 +1224,8 @@ static inline void kvm_memslot_delete(struct kvm_memslots *slots,
|
||||
|
||||
slots->used_slots--;
|
||||
|
||||
if (atomic_read(&slots->lru_slot) >= slots->used_slots)
|
||||
atomic_set(&slots->lru_slot, 0);
|
||||
if (atomic_read(&slots->last_used_slot) >= slots->used_slots)
|
||||
atomic_set(&slots->last_used_slot, 0);
|
||||
|
||||
for (i = slots->id_to_index[memslot->id]; i < slots->used_slots; i++) {
|
||||
mslots[i] = mslots[i + 1];
|
||||
|
||||
Reference in New Issue
Block a user