From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Thu, 24 May 2007 12:08:44 -0700 (PDT) From: Christoph Lameter Subject: Re: [PATCH 2/5] Breakout page_order() to internal.h to avoid special knowledge of the buddy allocator In-Reply-To: <20070524190546.31911.7469.sendpatchset@skynet.skynet.ie> Message-ID: References: <20070524190505.31911.42785.sendpatchset@skynet.skynet.ie> <20070524190546.31911.7469.sendpatchset@skynet.skynet.ie> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mm@kvack.org Return-Path: To: Mel Gorman Cc: linux-mm@kvack.org List-ID: On Thu, 24 May 2007, Mel Gorman wrote: > The statistics patch later needs to know what order a free page is on the > free lists. Rather than having special knowledge of page_private() when > PageBuddy() is set, this patch places out page_order() in internal.h and > adds a VM_BUG_ON to catch using it on non-PageBuddy pages. Ok but I think in the future we need to have some way to generally handle pages of higher order be they free or not. Maybe generalize the way we handle compound pages as done in the large blocksize patchset? Signed-off-by: Christoph Lameter -- 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