From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pd0-f169.google.com (mail-pd0-f169.google.com [209.85.192.169]) by kanga.kvack.org (Postfix) with ESMTP id 6E16F900015 for ; Sat, 14 Feb 2015 02:32:23 -0500 (EST) Received: by pdbfl12 with SMTP id fl12so24057552pdb.4 for ; Fri, 13 Feb 2015 23:32:23 -0800 (PST) Received: from lgeamrelo02.lge.com (lgeamrelo02.lge.com. [156.147.1.126]) by mx.google.com with ESMTP id td4si3111257pbc.77.2015.02.13.23.32.21 for ; Fri, 13 Feb 2015 23:32:22 -0800 (PST) Message-ID: <54DEFA03.6010308@lge.com> Date: Sat, 14 Feb 2015 16:32:19 +0900 From: Gioh Kim MIME-Version: 1.0 Subject: Re: [PATCH 2/4] mm: cma: add functions to get region pages counters References: In-Reply-To: Content-Type: text/plain; charset=euc-kr Content-Transfer-Encoding: 8bit Sender: owner-linux-mm@kvack.org List-ID: To: Stefan Strogin , linux-mm@kvack.org, linux-kernel@vger.kernel.org Cc: Dmitry Safonov , Joonsoo Kim , Andrew Morton , Marek Szyprowski , Michal Nazarewicz , aneesh.kumar@linux.vnet.ibm.com, Laurent Pinchart , Pintu Kumar , Weijie Yang , Laura Abbott , SeongJae Park , Hui Zhu , Minchan Kim , Dyasly Sergey , Vyacheslav Tyrtov , gregory.0xf0@gmail.com, sasha.levin@oracle.com, pavel@ucw.cz, stefan.strogin@gmail.com 2015-02-13 ?AAu 7:15?! Stefan Strogin AI(?!) 3/4 ' +-U: > From: Dmitry Safonov > > Here are two functions that provide interface to compute/get used size > and size of biggest free chunk in cma region. I usually just try to allocate memory, not check free size before try, becuase free size can be changed after I check it. Could you tell me why biggest free chunk size is necessary? -- 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