diff --git a/mm/swapfile.c b/mm/swapfile.c index 41400ae4e7c16a122f42763b5fbe35226fa586e9..765fca3451d2cf6073258cca3f87047686dcdd69 100644 --- a/mm/swapfile.c +++ b/mm/swapfile.c @@ -2843,10 +2843,10 @@ static void *swap_next(struct seq_file *swap, void *v, loff_t *pos) else type = si->type + 1; + ++(*pos); for (; (si = swap_type_to_swap_info(type)); type++) { if (!(si->flags & SWP_USED) || !si->swap_map) continue; - ++*pos; return si; }