[PATCH 5.4 048/156] mm/swapfile: add cond_resched() in get_swap_pages()