diff --git a/mm/swap_slots.c b/mm/swap_slots.c index 2f877e6f87d701607e788028f1732a6805e5f4de..2a65a89b5b4d7392c86b2b7dc169c0a233cce193 100644 --- a/mm/swap_slots.c +++ b/mm/swap_slots.c @@ -258,7 +258,7 @@ void enable_swap_slots_cache(void) /* called with swap slot cache's alloc lock held */ static int refill_swap_slots_cache(struct swap_slots_cache *cache) { - if (!use_swap_slot_cache || cache->nr) + if (!use_swap_slot_cache) return 0; cache->cur = 0;