Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753002AbbBNHcX (ORCPT ); Sat, 14 Feb 2015 02:32:23 -0500 Received: from lgeamrelo02.lge.com ([156.147.1.126]:37374 "EHLO lgeamrelo02.lge.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751473AbbBNHcW (ORCPT ); Sat, 14 Feb 2015 02:32:22 -0500 X-Original-SENDERIP: 10.178.37.108 X-Original-MAILFROM: gioh.kim@lge.com Message-ID: <54DEFA03.6010308@lge.com> Date: Sat, 14 Feb 2015 16:32:19 +0900 From: Gioh Kim User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 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 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: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 662 Lines: 17 2015-02-13 ???? 7:15?? Stefan Strogin ??(??) ?? ??: > 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 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/