From patchwork Wed Jun 3 08:40:23 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Song Bao Hua (Barry Song)" X-Patchwork-Id: 11585319 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id E9004913 for ; Wed, 3 Jun 2020 08:42:04 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id C3928206C3 for ; Wed, 3 Jun 2020 08:42:04 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C3928206C3 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=hisilicon.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id D9CAF8E0007; Wed, 3 Jun 2020 04:42:03 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id D4D3A8E0006; Wed, 3 Jun 2020 04:42:03 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C62F48E0007; Wed, 3 Jun 2020 04:42:03 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0169.hostedemail.com [216.40.44.169]) by kanga.kvack.org (Postfix) with ESMTP id AA9B28E0006 for ; Wed, 3 Jun 2020 04:42:03 -0400 (EDT) Received: from smtpin15.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id 67A792490 for ; Wed, 3 Jun 2020 08:42:03 +0000 (UTC) X-FDA: 76887258126.15.root78_6923b1f2e8014 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin15.hostedemail.com (Postfix) with ESMTP id 190221814B0CA for ; Wed, 3 Jun 2020 08:42:03 +0000 (UTC) X-Spam-Summary: 2,0,0,441edd4a212db9e0,d41d8cd98f00b204,song.bao.hua@hisilicon.com,,RULES_HIT:41:355:379:541:582:988:989:1152:1260:1261:1277:1311:1313:1314:1345:1437:1515:1516:1518:1534:1538:1711:1714:1730:1747:1777:1792:2393:2559:2562:3138:3139:3140:3141:3142:3350:3865:3866:3867:3870:4250:5007:6261:10004:10400:11658:11914:12297:12679:12895:13069:13161:13229:13311:13357:13894:14394:14721:21080:21451:21627:21740:21796:30012:30029:30030:30036:30054,0,RBL:45.249.212.191:@hisilicon.com:.lbl8.mailshell.net-64.201.201.201 62.14.2.100,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fp,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:23,LUA_SUMMARY:none X-HE-Tag: root78_6923b1f2e8014 X-Filterd-Recvd-Size: 1655 Received: from huawei.com (szxga05-in.huawei.com [45.249.212.191]) by imf07.hostedemail.com (Postfix) with ESMTP for ; Wed, 3 Jun 2020 08:42:02 +0000 (UTC) Received: from DGGEMS408-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id E0C7CDB02565211492AB; Wed, 3 Jun 2020 16:41:58 +0800 (CST) Received: from SWX921481.china.huawei.com (10.126.202.66) by DGGEMS408-HUB.china.huawei.com (10.3.19.208) with Microsoft SMTP Server id 14.3.487.0; Wed, 3 Jun 2020 16:41:49 +0800 From: Barry Song To: , CC: , , , , Barry Song Subject: [PATCH 0/2] mm: fix the names of general cma and hugetlb cma Date: Wed, 3 Jun 2020 20:40:23 +1200 Message-ID: <20200603084025.62740-1-song.bao.hua@hisilicon.com> X-Mailer: git-send-email 2.21.0.windows.1 MIME-Version: 1.0 X-Originating-IP: [10.126.202.66] X-CFilter-Loop: Reflected X-Rspamd-Queue-Id: 190221814B0CA X-Spamd-Result: default: False [0.00 / 100.00] X-Rspamd-Server: rspam03 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: the current code of CMA can only work when users pass a const string as name parameter. we need to fix the way to handle names in CMA. On the other hand, to avoid name conflicts after enabling CMA_DEBUGFS, each hugetlb should get a different CMA name. Barry Song (2): mm: cma: fix the name of CMA areas mm: hugetlb: fix the name of hugetlb CMA mm/cma.c | 13 ++++++------- mm/cma.h | 4 +++- mm/hugetlb.c | 4 +++- 3 files changed, 12 insertions(+), 9 deletions(-)