]> git.baikalelectronics.ru Git - kernel.git/commit
PM / Hibernate: Drop the check of swap space size for compressed image
authorBarry Song <Baohua.Song@csr.com>
Mon, 9 Jan 2012 04:56:23 +0000 (12:56 +0800)
committerRafael J. Wysocki <rjw@sisk.pl>
Fri, 13 Jan 2012 23:41:37 +0000 (00:41 +0100)
commitce4dd12a0aecf7ce897a46645fc61bfcd44b6251
treeb33342752535473f07742206395049233579d12b
parent891d5228bd62aadbe9d2f5d33fbf7c8629a2f0ee
PM / Hibernate: Drop the check of swap space size for compressed image

For compressed image, the space required is not known until
we finish compressing and writing all pages.
This patch drops the check, and if swap space is not enough
finally, system can still restore to normal after writing
swap fails for compressed images.

Signed-off-by: Barry Song <Baohua.Song@csr.com>
Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
kernel/power/swap.c