Address swap allocation issues.
commit83bc3a031efc489b9483e4388a65e527ca823fa6
authorNigel Cunningham <nigel@suspend2.net>
Tue, 8 May 2007 11:24:44 +0000 (8 21:24 +1000)
committerNigel Cunningham <nigel@suspend2.net>
Tue, 8 May 2007 11:24:56 +0000 (8 21:24 +1000)
tree589de11906bc9b8b553eb580ea3f2841d967e9c3
parent42a4cec8dbd5a11a654d92d264f04aa59d4a03ce
Address swap allocation issues.

Handle error conditions in allocating swap better. If we fail to allocate
an extent to record newly allocated swap entries, free the affected swap
pages. Only update the number of main pages allocated by the number
actually gotten.

Also cleanup suspend_swap_release_storage a little.

Signed-off-by: Nigel Cunningham <nigel@suspend2.net>
kernel/power/suspend_swap.c