From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1424917Ab2LFVhO (ORCPT ); Thu, 6 Dec 2012 16:37:14 -0500 Received: from smtprelay-b21.telenor.se ([195.54.99.212]:36377 "EHLO smtprelay-b21.telenor.se" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1424897Ab2LFVhL (ORCPT ); Thu, 6 Dec 2012 16:37:11 -0500 X-SENDER-IP: [85.230.168.206] X-LISTENER: [smtp.bredband.net] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: At9NAMMPwVBV5qjOPGdsb2JhbABEim6zQBcDAQEBATg0gh4BAQQBOhwjBQsIA0YUJQoaiB0KwmsUjEiDP2EDlgKFe4NTiW4 X-IronPort-AV: E=Sophos;i="4.84,233,1355094000"; d="scan'208";a="462904698" From: "Henrik Rydberg" Date: Thu, 6 Dec 2012 22:39:09 +0100 To: Linus Torvalds Cc: Mel Gorman , Jan Kara , linux-mm , Linux Kernel Mailing List Subject: Re: Oops in 3.7-rc8 isolate_free_pages_block() Message-ID: <20121206213909.GA625@polaris.bitmath.org> References: <20121206091744.GA1397@polaris.bitmath.org> <20121206144821.GC18547@quack.suse.cz> <20121206161934.GA17258@suse.de> <20121206175451.GC17258@suse.de> <20121206183259.GA591@polaris.bitmath.org> <20121206192845.GA599@polaris.bitmath.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > There is also a > > low_pfn += pageblock_nr_pages; > low_pfn = ALIGN(low_pfn, pageblock_nr_pages) - 1; > > that looks suspicious for similar reasons. Maybe > > low_pfn = ALIGN(low_pfn + 1, pageblock_nr_pages) - 1; > > instead? Although that *can* result in the same low_pfn in the end, so > maybe that one was correct after all? I just did some grepping, no > actual semantic analysis... Here is a totally obscure version: low_pfn |= pageblock_nr_pages - 1; It simply moves to the very end of the block, which seems to be what was intended. Henrik