From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pavel Machek Subject: Re: [PATCH -mm 3/8] Hibernation: Simplify memory bitmap Date: Thu, 10 Jul 2008 13:34:41 +0200 Message-ID: <20080710113441.GC15412@elf.ucw.cz> References: <200807100152.17755.rjw@sisk.pl> <200807100200.55473.rjw@sisk.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from gprs189-60.eurotel.cz ([160.218.189.60]:44408 "EHLO gprs189-60.eurotel.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755424AbYGJPDm (ORCPT ); Thu, 10 Jul 2008 11:03:42 -0400 Content-Disposition: inline In-Reply-To: <200807100200.55473.rjw@sisk.pl> Sender: linux-acpi-owner@vger.kernel.org List-Id: linux-acpi@vger.kernel.org To: "Rafael J. Wysocki" Cc: Andrew Morton , ACPI Devel Maling List , LKML , pm list , Akinobu Mita On Thu 2008-07-10 02:00:54, Rafael J. Wysocki wrote: > From: Akinobu Mita > Subject: Hibernation: Simplify memory bitmap > > This patch simplifies the memory bitmap manipulations. > > - remove the member size in struct bm_block > > It is not necessary for struct bm_block to have the number of bit chunks > that can be calculated by using end_pfn and start_pfn. > > - use find_next_bit() for memory_bm_next_pfn > > No need to invent the bitmap library only for the memory bitmap. > > Signed-off-by: Akinobu Mita > Signed-off-by: Rafael J. Wysocki ACK. -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html