[PATCH] swsusp: rearrange swap-handling code