From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Howells Subject: Re: [PATCH v6, part3 14/16] mm: concentrate modification of totalram_pages into the mm core Date: Mon, 13 May 2013 10:19:11 +0100 Message-ID: <15411.1368436751@warthog.procyon.org.uk> References: <1368293689-16410-15-git-send-email-jiang.liu@huawei.com> <1368293689-16410-1-git-send-email-jiang.liu@huawei.com> Return-path: In-Reply-To: <1368293689-16410-15-git-send-email-jiang.liu@huawei.com> Sender: owner-linux-mm@kvack.org To: Jiang Liu Cc: dhowells@redhat.com, Andrew Morton , Jiang Liu , David Rientjes , Wen Congyang , Mel Gorman , Minchan Kim , KAMEZAWA Hiroyuki , Michal Hocko , James Bottomley , Sergei Shtylyov , Mark Salter , Jianguo Wu , linux-mm@kvack.org, linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org List-Id: linux-arch.vger.kernel.org Jiang Liu wrote: > Concentrate code to modify totalram_pages into the mm core, so the arch > memory initialized code doesn't need to take care of it. With these > changes applied, only following functions from mm core modify global > variable totalram_pages: > free_bootmem_late(), free_all_bootmem(), free_all_bootmem_node(), > adjust_managed_page_count(). > > With this patch applied, it will be much more easier for us to keep > totalram_pages and zone->managed_pages in consistence. I like it. Acked-by: David Howells -- 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 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx1.redhat.com ([209.132.183.28]:37269 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752041Ab3EMJTd (ORCPT ); Mon, 13 May 2013 05:19:33 -0400 From: David Howells In-Reply-To: <1368293689-16410-15-git-send-email-jiang.liu@huawei.com> References: <1368293689-16410-15-git-send-email-jiang.liu@huawei.com> <1368293689-16410-1-git-send-email-jiang.liu@huawei.com> Subject: Re: [PATCH v6, part3 14/16] mm: concentrate modification of totalram_pages into the mm core Date: Mon, 13 May 2013 10:19:11 +0100 Message-ID: <15411.1368436751@warthog.procyon.org.uk> Sender: linux-arch-owner@vger.kernel.org List-ID: To: Jiang Liu Cc: dhowells@redhat.com, Andrew Morton , Jiang Liu , David Rientjes , Wen Congyang , Mel Gorman , Minchan Kim , KAMEZAWA Hiroyuki , Michal Hocko , James Bottomley , Sergei Shtylyov , Mark Salter , Jianguo Wu , linux-mm@kvack.org, linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org Message-ID: <20130513091911.MlsTSQD7waHbGozq1QJ-pyQXocDk7S3My7kL4q2vt7c@z> Jiang Liu wrote: > Concentrate code to modify totalram_pages into the mm core, so the arch > memory initialized code doesn't need to take care of it. With these > changes applied, only following functions from mm core modify global > variable totalram_pages: > free_bootmem_late(), free_all_bootmem(), free_all_bootmem_node(), > adjust_managed_page_count(). > > With this patch applied, it will be much more easier for us to keep > totalram_pages and zone->managed_pages in consistence. I like it. Acked-by: David Howells