From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx158.postini.com [74.125.245.158]) by kanga.kvack.org (Postfix) with SMTP id 7FE576B002B for ; Tue, 9 Oct 2012 09:46:18 -0400 (EDT) Received: by mail-pa0-f41.google.com with SMTP id fa10so5811035pad.14 for ; Tue, 09 Oct 2012 06:46:17 -0700 (PDT) Date: Tue, 9 Oct 2012 22:46:08 +0900 From: Minchan Kim Subject: Re: [PATCH] mm: compaction: fix bit ranges in {get,clear,set}_pageblock_skip() Message-ID: <20121009134608.GB3244@barrios> References: <201210091343.47857.b.zolnierkie@samsung.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201210091343.47857.b.zolnierkie@samsung.com> Sender: owner-linux-mm@kvack.org List-ID: To: Bartlomiej Zolnierkiewicz Cc: Andrew Morton , Mel Gorman , Thierry Reding , Peter Ujfalusi , Marek Szyprowski , Michal Nazarewicz , Mark Brown , Kyungmin Park , linux-mm@kvack.org On Tue, Oct 09, 2012 at 01:43:47PM +0200, Bartlomiej Zolnierkiewicz wrote: > From: Bartlomiej Zolnierkiewicz > Subject: [PATCH] mm: compaction: fix bit ranges in {get,clear,set}_pageblock_skip() > > {get,clear,set}_pageblock_skip() use incorrect bit ranges (please compare > to bit ranges used by {get,set}_pageblock_flags() used for migration types) > and can overwrite pageblock migratetype of the next pageblock in the bitmap. > > This fix is needed for "mm: compaction: cache if a pageblock was scanned and > no pages were isolated" patch. > > Acked-by: Mel Gorman > Tested-by: Thierry Reding > Cc: Minchan Kim > Cc: Peter Ujfalusi > Cc: Marek Szyprowski > Cc: Michal Nazarewicz > Cc: Mark Brown > Signed-off-by: Bartlomiej Zolnierkiewicz > Signed-off-by: Kyungmin Park Acked-by: Minchan Kim Good spot. Thanks, Bart! -- Kind Regards, Minchan Kim -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org