Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp3964823ybh; Tue, 17 Mar 2020 09:41:32 -0700 (PDT) X-Google-Smtp-Source: ADFU+vuP9nVd0JPw8jTzfy15KAD4fMv/m+SL2EkVHA0ETCSOq5bvF6qcKHe5rkHyfsgTwfS5BAyX X-Received: by 2002:aca:a98a:: with SMTP id s132mr156670oie.75.1584463292647; Tue, 17 Mar 2020 09:41:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584463292; cv=none; d=google.com; s=arc-20160816; b=qAAwUaHCWhR/B78Jr5WjiYGjKyEp16ab+4sol2+78jbrjB4Y4D6pNcO9ZqVruXUZrq HwO8g1/QgcPPCIlJAmuyTCMmKKjXbVK8vANTqwC8ZOtV7X5bDEWtrrHVfhkMPK6eneoN aU802tYBmBkxZhUwOT/wUR2dkx4/Z5RDRmQjRU/ddUf5Ux+eFhU8XtMsAs8HWaM0ykcU r0t96jj8OrpVquaidAUE3FxDiruyqwptPIrumaGAqI2rkMVQigpyu4+LflYrWtYxFNWH GVb97tysIkumpscTKCLXro12za2oSxg5XHb1z6QlbbEN5zajQZFzMFNfhA0Gz+c7h0R6 /heg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=T5tsVKMIG7XPMSHs9gjaBJJXCqRM0l5UsJSpLrAOiPA=; b=Cws8CHz3/BEMzRFYgUv8R4djvOXxnMTiXMXworIEnDYA0xCTw9apa9zp7kdr0TqmDJ lI2JmTaNRSajgr23GXVT5jtXqfODLtzo1uEg6vIwhnkidIAeAznSvaU9Gh8xae3/M7HI nFnFc5mmk9DS5yrJ1gwcM9ZVoHbsCBRog4hT7Yy6KbZaki+A2RUhVNfy8T1PNwSeYEQd HN7fNkv8G8sVjERtZLuo7PVIEaLmkndlHt+UVOyOX9NBNM8i5Nkk1WNZYzLZWtil6H/M CyWXIijqnY6U07u8sBzAi9SSi/33FeSuHaOqOEceVdq5qJE9MA4FRpwX+INzxCWR4iub UcVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2020-01-29 header.b=wAhJj7sO; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e11si2007465oib.152.2020.03.17.09.41.17; Tue, 17 Mar 2020 09:41:32 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2020-01-29 header.b=wAhJj7sO; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726552AbgCQQku (ORCPT + 99 others); Tue, 17 Mar 2020 12:40:50 -0400 Received: from userp2120.oracle.com ([156.151.31.85]:48140 "EHLO userp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726019AbgCQQku (ORCPT ); Tue, 17 Mar 2020 12:40:50 -0400 Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 02HGdjiB039777; Tue, 17 Mar 2020 16:40:16 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=subject : to : cc : references : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=corp-2020-01-29; bh=T5tsVKMIG7XPMSHs9gjaBJJXCqRM0l5UsJSpLrAOiPA=; b=wAhJj7sOJdkPDno0zaw3Kue06mgis1jdpy8OU9v85Qt5TBtOrSKas2p20SLQ5i4HPxQh slxNXzkrnBSsTo3gwGc4JjeoGKiOufMNDsNeoJlQ/e3ZdHhNKuprpnEpKoEJBtEvO+/c 2P6zR0I1pjG6jKLtIf7xN0Pt79y0/YeUd22ihF9XKlmM5q0WhlHaisQm08Cf8wgL5/wl PgRJselhgnyahk2p1F5iibiLbYYfhiI9d1L2d3laU49XQEIMYSqv82w9av1V8kGobVHY 7AdzNnxDCvzXxhEh6A52+8qLXOGd4MjqaKSCKZCH/pr8uazZqhRTbsdqlHKHUlkUF264 kg== Received: from userp3030.oracle.com (userp3030.oracle.com [156.151.31.80]) by userp2120.oracle.com with ESMTP id 2yrqwn5w97-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 17 Mar 2020 16:40:16 +0000 Received: from pps.filterd (userp3030.oracle.com [127.0.0.1]) by userp3030.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 02HGOVbJ032830; Tue, 17 Mar 2020 16:40:16 GMT Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by userp3030.oracle.com with ESMTP id 2ys8rf7kqy-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 17 Mar 2020 16:40:15 +0000 Received: from abhmp0016.oracle.com (abhmp0016.oracle.com [141.146.116.22]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id 02HGe8bM003635; Tue, 17 Mar 2020 16:40:08 GMT Received: from [192.168.1.206] (/71.63.128.209) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 17 Mar 2020 09:40:07 -0700 Subject: Re: [PATCH] mm/hugetlb: Fix build failure with HUGETLB_PAGE but not HUGEBTLBFS To: Christophe Leroy , Baoquan He Cc: Andrew Morton , Nishanth Aravamudan , Nick Piggin , Adam Litke , Andi Kleen , linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-mm@kvack.org References: <7e8c3a3c9a587b9cd8a2f146df32a421b961f3a2.1584432148.git.christophe.leroy@c-s.fr> <20200317082550.GA3375@MiWiFi-R3L-srv> <60117fd7-46ff-326b-34f1-0c7087111ca7@c-s.fr> From: Mike Kravetz Message-ID: Date: Tue, 17 Mar 2020 09:40:06 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 In-Reply-To: <60117fd7-46ff-326b-34f1-0c7087111ca7@c-s.fr> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9563 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 bulkscore=0 phishscore=0 malwarescore=0 mlxscore=0 mlxlogscore=999 adultscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2003020000 definitions=main-2003170067 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9563 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 lowpriorityscore=0 mlxlogscore=999 mlxscore=0 bulkscore=0 phishscore=0 spamscore=0 suspectscore=0 malwarescore=0 priorityscore=1501 clxscore=1011 adultscore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2003020000 definitions=main-2003170067 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 3/17/20 1:43 AM, Christophe Leroy wrote: > > > Le 17/03/2020 à 09:25, Baoquan He a écrit : >> On 03/17/20 at 08:04am, Christophe Leroy wrote: >>> When CONFIG_HUGETLB_PAGE is set but not CONFIG_HUGETLBFS, the >>> following build failure is encoutered: >> >> From the definition of HUGETLB_PAGE, isn't it relying on HUGETLBFS? >> I could misunderstand the def_bool, please correct me if I am wrong. > > AFAIU, it means that HUGETLBFS rely on HUGETLB_PAGE, by default HUGETLB_PAGE is not selected when HUGETLBFS is not. But it is still possible for an arch to select HUGETLB_PAGE without selecting HUGETLBFS when it uses huge pages for other purpose than hugetlb file system. > Hi Christophe, Do you actually have a use case/example of using hugetlb pages without hugetlbfs? I can understand that there are some use cases which never use the filesystem interface. However, hugetlb support is so intertwined with hugetlbfs, I am thinking there would be issues trying to use them separately. I will look into this further. -- Mike Kravetz