Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp233935pxj; Wed, 9 Jun 2021 22:28:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyM0IMO0jlVywVunodBelG16jn2iqOZiIrvNSTBzVGs6zIceMT5/JWgbv/3yEDb+bdTCJqq X-Received: by 2002:a05:6402:2207:: with SMTP id cq7mr2972487edb.295.1623302919295; Wed, 09 Jun 2021 22:28:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623302919; cv=none; d=google.com; s=arc-20160816; b=zitBjOSjEm1jKEcUbCVY5pvLYbxM1/JzeD8IAUQTlq12TtDLzGp2IDh+b6i7ZoKwnX UKrnTeZbWLsfzyT3A9U4yLcyR3FwpP/V+m12ld7oRJUqfiqz449pprXhTJfzx2K/OXOT YAzRUAY+7PaIwlV8vU6NH/ep3M60bWVBmQmIzisTri9SJRXDBYCsBTsLbvBno0NXmMya laNtXzzBep6KmlhkPOTjeEkdb4S+SWVlU+DLxM0Y4/vQYod34qz2NSS3BUOGdcrIkogu AJaVfxCKCSZ3ewJesEif2bGMo/eT3TvclhmyIxORLNp+HkVWPknWinWV1QkhX2RvDAqg s2eQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=0q4RCvc/9mzT3mQV4dTF1WnKIhRqdnIIYV31Jdhy1KQ=; b=yG/fFSmbyCu5cz++zrSapm739hak1z2/jUqiiIU3HyF3ZTePvNVWQKuzDWWX54EktF AGwHAP4fkXPTa9lym4rUYNsX3d7k1uS9a2WoFdU0LrEce7d+98fjI6tRsyEs+0PC2WS1 9/Sa16Qp7wq5Jq9A2YOemQRVtxhbQfduwnFUoRI9OVHgAywUfATAcuRRObSrDFM8ecyY 8U5IBlsU62pYaGc874bthRCXuwcDCEWMMnW660G0AxM50X3oXS9jkMz3pIrLamhCJN2L OJqegBt762JWCP0UG+XgHxdRQeMNElOSZcrBa5FQli0SWRZ8XDBA7cADziTuVwhgMKDK 74Zw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=WV2xiZA3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dj4si1480518edb.230.2021.06.09.22.28.16; Wed, 09 Jun 2021 22:28:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=WV2xiZA3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230262AbhFJF1K (ORCPT + 99 others); Thu, 10 Jun 2021 01:27:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38090 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229705AbhFJF1J (ORCPT ); Thu, 10 Jun 2021 01:27:09 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 14D5DC061574; Wed, 9 Jun 2021 22:25:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=0q4RCvc/9mzT3mQV4dTF1WnKIhRqdnIIYV31Jdhy1KQ=; b=WV2xiZA3cNN/xfc3Hy5VQQcra4 i/kUVdx5dj/vBw9CKf7eqA2UCMB3gebnUW1fhL0LTlnOkgyCrIjCV0gqFx9+usHQBS4yvbucRBoGg JNC+75/rCUoVxOKlaov0NGbYIjSbwDxhx8FfXuvpM+5tXkSnW5TbXX7FSq+fqxim45alIaVx8m2JM RtddiwUAZEG2sUILhPcMnydEMwqkqT+MOttywz2PULGGqe57UtiCPLWggiJ/PhST4eb0l8+EgJZyk GEVQrc0al3ZUAifTo7iDYlWQpycpUgWOUYkaU4sqTxsRyDJEED2YCd2wUzo/0DR4zIMnpm3fuIuYg 1hxYTrng==; Received: from hch by casper.infradead.org with local (Exim 4.94 #2 (Red Hat Linux)) id 1lrDBH-001GCn-Eh; Thu, 10 Jun 2021 05:24:46 +0000 Date: Thu, 10 Jun 2021 06:24:39 +0100 From: Christoph Hellwig To: Christian Borntraeger Cc: Claudio Imbrenda , Christoph Hellwig , linux-kernel@vger.kernel.org, kvm@vger.kernel.org, linux-s390@vger.kernel.org, frankja@linux.ibm.com, cohuck@redhat.com, david@redhat.com, linux-mm@kvack.org, Andrew Morton , Nicholas Piggin , Uladzislau Rezki , Catalin Marinas , Thomas Gleixner , Ingo Molnar , David Rientjes Subject: Re: [PATCH v2 1/2] mm/vmalloc: export __vmalloc_node_range Message-ID: References: <20210608180618.477766-1-imbrenda@linux.ibm.com> <20210608180618.477766-2-imbrenda@linux.ibm.com> <20210609182809.7ae07aad@ibm-vm> <6bf6fb06-0930-8cae-3e2b-8cb3237a6197@de.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6bf6fb06-0930-8cae-3e2b-8cb3237a6197@de.ibm.com> X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org. See http://www.infradead.org/rpr.html Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 09, 2021 at 07:47:43PM +0200, Christian Borntraeger wrote: > An alternative would be to provide a vmalloc_no_huge function in generic > code (similar to vmalloc_32) (or if preferred in s390 base architecture code) > Something like > > void *vmalloc_no_huge(unsigned long size) > { > return __vmalloc_node_flags(size, NUMA_NO_NODE,VM_NO_HUGE_VMAP | > GFP_KERNEL | __GFP_ZERO); > } > EXPORT_SYMBOL(vmalloc_no_huge); > > or a similar vzalloc variant. Exactly. Given that this seems to be a weird pecularity of legacy s390 interfaces I'd only export it for 390 for now, although for documentation purposes I'd probably still keep it in vmalloc.c.