From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from d01relay02.pok.ibm.com (d01relay02.pok.ibm.com [9.56.227.234]) by e3.ny.us.ibm.com (8.12.11/8.12.11) with ESMTP id j8QKHRNd031088 for ; Mon, 26 Sep 2005 16:17:27 -0400 Received: from d01av04.pok.ibm.com (d01av04.pok.ibm.com [9.56.224.64]) by d01relay02.pok.ibm.com (8.12.10/NCO/VERS6.7) with ESMTP id j8QKHRdF098456 for ; Mon, 26 Sep 2005 16:17:27 -0400 Received: from d01av04.pok.ibm.com (loopback [127.0.0.1]) by d01av04.pok.ibm.com (8.12.11/8.13.3) with ESMTP id j8QKHRZc006486 for ; Mon, 26 Sep 2005 16:17:27 -0400 Message-ID: <43385754.5080704@austin.ibm.com> Date: Mon, 26 Sep 2005 15:17:24 -0500 From: Joel Schopp MIME-Version: 1.0 Subject: [PATCH 9/9] free memory is user reclaimable References: <4338537E.8070603@austin.ibm.com> In-Reply-To: <4338537E.8070603@austin.ibm.com> Content-Type: multipart/mixed; boundary="------------000805030705090005000407" Sender: owner-linux-mm@kvack.org Return-Path: To: Andrew Morton Cc: Joel Schopp , lhms , Linux Memory Management List , linux-kernel@vger.kernel.org, Mel Gorman , Mike Kravetz List-ID: This is a multi-part message in MIME format. --------------000805030705090005000407 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Make the free memory revert to user reclaimable type, which is probably more accurate, and certainly helpful for memory hotplug remove. Signed-off-by: Mike Kravetz Signed-off-by: Joel Schopp --------------000805030705090005000407 Content-Type: text/plain; name="9_free_memory_is_user" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="9_free_memory_is_user" Index: 2.6.13-joel2/mm/page_alloc.c =================================================================== --- 2.6.13-joel2.orig/mm/page_alloc.c 2005-09-21 11:31:51.%N -0500 +++ 2.6.13-joel2/mm/page_alloc.c 2005-09-21 11:37:48.%N -0500 @@ -339,6 +339,9 @@ static inline int page_is_buddy(struct p * triggers coalescing into a block of larger size. * * -- wli + * + * For hotplug memory purposes make the free memory revert to the user + * reclaimable type, which is probably more accurate for that state anyway. */ static inline void __free_pages_bulk (struct page *page, @@ -379,7 +382,10 @@ static inline void __free_pages_bulk (st page_idx = combined_idx; order++; } - if (unlikely(order == MAX_ORDER-1)) zone->fallback_balance++; + if (unlikely(order == MAX_ORDER-1)) { + set_pageblock_type(zone, page, RCLM_USER); + zone->fallback_balance++; + } set_page_order(page, order); area = freelist + order; --------------000805030705090005000407-- -- 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