From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id A6EB8C433EF for ; Thu, 9 Dec 2021 09:40:48 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 2AF536B0071; Thu, 9 Dec 2021 04:40:38 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 25FC26B0073; Thu, 9 Dec 2021 04:40:38 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 127D76B0074; Thu, 9 Dec 2021 04:40:38 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0090.hostedemail.com [216.40.44.90]) by kanga.kvack.org (Postfix) with ESMTP id 007206B0071 for ; Thu, 9 Dec 2021 04:40:37 -0500 (EST) Received: from smtpin28.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id B79128248076 for ; Thu, 9 Dec 2021 09:40:27 +0000 (UTC) X-FDA: 78897760494.28.6D2637B Received: from mail-pl1-f174.google.com (mail-pl1-f174.google.com [209.85.214.174]) by imf09.hostedemail.com (Postfix) with ESMTP id 1720C140004 for ; Thu, 9 Dec 2021 09:40:25 +0000 (UTC) Received: by mail-pl1-f174.google.com with SMTP id n8so3464964plf.4 for ; Thu, 09 Dec 2021 01:40:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:subject:to:cc:references:in-reply-to:mime-version :message-id:content-transfer-encoding; bh=EAgzyfuzJrF4vc8wP6iAI5ht/czof/vV71b1T0UUKYM=; b=RvQazjWcfA1CTLQXBKyS6zhLE6thZvJI6iEsOMs0oL+88is+AkWnRLRnks9kAvpct1 RcUnXFWjRa73QTiIvzBhxuCaBV3apHjXFNXNBSQ6Pi4SSfJRRT0VtPUtpxBISGpkTk4k j4kEi7GUwmu9E+hBsWMiYCPPC60v47yHAr0IC1pOcTFmQgrVpAcq55VBGhouNMTOzCbU Q0XCIqkeaBWEyC0+H8giMLSISSeBrBjan0wpuxFufC2RzCgRi+pm26/gpPG4rE9AEPhy S3ZYHBjvX6P0yjhv+V/Y7My8aWlT5jwgDQlgGOGSw0WXU+aKE4cyinVxxkgMv0bh3c4M sk9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:subject:to:cc:references:in-reply-to :mime-version:message-id:content-transfer-encoding; bh=EAgzyfuzJrF4vc8wP6iAI5ht/czof/vV71b1T0UUKYM=; b=nznCEdU9CK/zYqNkYVkY4H21GlwTWDIhCoWUcbUnhzftNcLmc82ol+Bd5Xhjm1sNP4 uGEqDL0EsNBeoq4JkEYqXeDIPZLw6HIZYDT0jt6wd8ykbFWXoRRlb9h4x21GXMSLloqE 5SDbu6JmCAeHu+QgycmVRQuUGCe1XMPUwaVQhRhYNc75Iqpa4g+9kWK/BbnwkmGq6Lpp z4zlrNw87xkiTh1bZcaDmt5Tx4RfaxMmLsPdmpdEwL6Cnt+BEuyu0aL0XjTUOg0JfD6z P/fmgK3Io/85VByoyROklp3b9HQ5KpnFKfJegwCoQV0QLCU4dKsLX+kzLv+bPNUIFv9y AfVg== X-Gm-Message-State: AOAM5309atIAVNmj47qrNxcVzWDB1PZW9MP7/HsjUOPQqoRv3S34TAIq VUby3mfblN80ynrO1KsPg83naVBP/ek= X-Google-Smtp-Source: ABdhPJylsOgw7VCYRk99dEOJAsH+db9WnMPyzpHrN0JonjFuRepRjCcVVEudR1y+gG6e4nK/u4EbKQ== X-Received: by 2002:a17:902:e804:b0:142:1c0b:c2a6 with SMTP id u4-20020a170902e80400b001421c0bc2a6mr64878506plg.23.1639042826217; Thu, 09 Dec 2021 01:40:26 -0800 (PST) Received: from localhost (203-219-139-206.static.tpgi.com.au. [203.219.139.206]) by smtp.gmail.com with ESMTPSA id ne7sm9080112pjb.36.2021.12.09.01.40.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Dec 2021 01:40:25 -0800 (PST) Date: Thu, 09 Dec 2021 19:40:20 +1000 From: Nicholas Piggin Subject: Re: [PATCH v4 02/10] mm, hugetlbfs: Allow an arch to always use generic versions of get_unmapped_area functions To: "alex@ghiti.fr" , Benjamin Herrenschmidt , Christophe Leroy , Michael Ellerman , Paul Mackerras Cc: "akpm@linux-foundation.org" , "linux-kernel@vger.kernel.org" , "linux-mm@kvack.org" , "linuxppc-dev@lists.ozlabs.org" References: <52eb6d66c41f1165c88a0b0da08ae190c0b95a59.1638976229.git.christophe.leroy@csgroup.eu> In-Reply-To: <52eb6d66c41f1165c88a0b0da08ae190c0b95a59.1638976229.git.christophe.leroy@csgroup.eu> MIME-Version: 1.0 Message-Id: <1639042788.z08wljpdx8.astroid@bobo.none> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Stat-Signature: 4jp3wth7uk8hjt97ts6jerzra8xipjtq Authentication-Results: imf09.hostedemail.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=RvQazjWc; spf=pass (imf09.hostedemail.com: domain of npiggin@gmail.com designates 209.85.214.174 as permitted sender) smtp.mailfrom=npiggin@gmail.com; dmarc=pass (policy=none) header.from=gmail.com X-Rspamd-Server: rspam11 X-Rspamd-Queue-Id: 1720C140004 X-HE-Tag: 1639042825-129747 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: Excerpts from Christophe Leroy's message of December 9, 2021 3:18 am: > Unlike most architectures, powerpc can only define at runtime > if it is going to use the generic arch_get_unmapped_area() or not. >=20 > Today, powerpc has a copy of the generic arch_get_unmapped_area() > because when selection HAVE_ARCH_UNMAPPED_AREA the generic > arch_get_unmapped_area() is not available. >=20 > Rename it generic_get_unmapped_area() and make it independent of > HAVE_ARCH_UNMAPPED_AREA. >=20 > Do the same for arch_get_unmapped_area_topdown() versus > HAVE_ARCH_UNMAPPED_AREA_TOPDOWN. >=20 > Do the same for hugetlb_get_unmapped_area() versus > HAVE_ARCH_HUGETLB_UNMAPPED_AREA. >=20 Reviewed-by: Nicholas Piggin > Signed-off-by: Christophe Leroy > --- > fs/hugetlbfs/inode.c | 17 +++++++++++++---- > include/linux/hugetlb.h | 5 +++++ > include/linux/sched/mm.h | 9 +++++++++ > mm/mmap.c | 31 ++++++++++++++++++++++++------- > 4 files changed, 51 insertions(+), 11 deletions(-) >=20