[PATCH v3 2/8] mm/swapops: Rework swap entry manipulation code