mm/swapfile: use list_{prev,next}_entry() instead of open-coding