From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pavel Machek Subject: Re: [PATCH] PM:Hibernation: drop the check of swap space size for compressed image Date: Mon, 9 Jan 2012 11:10:37 +0100 Message-ID: <20120109101037.GB19903@elf.ucw.cz> References: <1326084983-22237-1-git-send-email-Barry.Song@csr.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <1326084983-22237-1-git-send-email-Barry.Song@csr.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-pm-bounces@lists.linux-foundation.org Errors-To: linux-pm-bounces@lists.linux-foundation.org To: Barry Song Cc: linux-pm@lists.linux-foundation.org, workgroup.linux@csr.com, linux-arm-kernel@lists.infradead.org, Barry Song List-Id: linux-pm@vger.kernel.org On Mon 2012-01-09 12:56:23, Barry Song wrote: > From: Barry Song > > 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 ACK. -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html