Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753045AbaJ0XPp (ORCPT ); Mon, 27 Oct 2014 19:15:45 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:41197 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752132AbaJ0XPo (ORCPT ); Mon, 27 Oct 2014 19:15:44 -0400 Date: Mon, 27 Oct 2014 16:15:44 -0700 From: Andrew Morton To: Michal Nazarewicz Cc: Pintu Kumar , riel@redhat.com, aquini@redhat.com, paul.gortmaker@windriver.com, jmarchan@redhat.com, lcapitulino@redhat.com, kirill.shutemov@linux.intel.com, m.szyprowski@samsung.com, aneesh.kumar@linux.vnet.ibm.com, iamjoonsoo.kim@lge.com, lauraa@codeaurora.org, gioh.kim@lge.com, mgorman@suse.de, rientjes@google.com, hannes@cmpxchg.org, vbabka@suse.cz, sasha.levin@oracle.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org, pintu_agarwal@yahoo.com, cpgs@samsung.com, vishnu.ps@samsung.com, rohit.kr@samsung.com, ed.savinay@samsung.com Subject: Re: [PATCH v2 2/2] fs: proc: Include cma info in proc/meminfo Message-Id: <20141027161544.8955c1df4c01c48e22283692@linux-foundation.org> In-Reply-To: References: <1413790391-31686-1-git-send-email-pintu.k@samsung.com> <1413986796-19732-1-git-send-email-pintu.k@samsung.com> <1413986796-19732-2-git-send-email-pintu.k@samsung.com> X-Mailer: Sylpheed 3.2.0beta5 (GTK+ 2.24.10; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 24 Oct 2014 18:31:21 +0200 Michal Nazarewicz wrote: > On Wed, Oct 22 2014, Pintu Kumar wrote: > > This patch include CMA info (CMATotal, CMAFree) in /proc/meminfo. > > Currently, in a CMA enabled system, if somebody wants to know the > > total CMA size declared, there is no way to tell, other than the dmesg > > or /var/log/messages logs. > > With this patch we are showing the CMA info as part of meminfo, so that > > it can be determined at any point of time. > > This will be populated only when CMA is enabled. > > > > Below is the sample output from a ARM based device with RAM:512MB and CMA:16MB. > > > > MemTotal: 471172 kB > > MemFree: 111712 kB > > MemAvailable: 271172 kB > > . > > . > > . > > CmaTotal: 16384 kB > > CmaFree: 6144 kB > > > > This patch also fix below checkpatch errors that were found during these changes. > > As already mentioned, this should be in separate patch. Yes, in theory. But a couple of little whitespace fixes aren't really worth a resend. As long as they don't make the patch harder to read and to backport I usually just let them through. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/