aboutsummaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
Diffstat (limited to 'mm')
-rw-r--r--mm/swapfile.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mm/swapfile.c b/mm/swapfile.c
index d443dea95c27..c6c13b050a58 100644
--- a/mm/swapfile.c
+++ b/mm/swapfile.c
@@ -616,7 +616,7 @@ scan:
616 } 616 }
617 } 617 }
618 offset = si->lowest_bit; 618 offset = si->lowest_bit;
619 while (++offset < scan_base) { 619 while (offset < scan_base) {
620 if (!si->swap_map[offset]) { 620 if (!si->swap_map[offset]) {
621 spin_lock(&si->lock); 621 spin_lock(&si->lock);
622 goto checks; 622 goto checks;
@@ -629,6 +629,7 @@ scan:
629 cond_resched(); 629 cond_resched();
630 latency_ration = LATENCY_LIMIT; 630 latency_ration = LATENCY_LIMIT;
631 } 631 }
632 offset++;
632 } 633 }
633 spin_lock(&si->lock); 634 spin_lock(&si->lock);
634 635