Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp534338ybb; Wed, 8 Apr 2020 05:03:59 -0700 (PDT) X-Google-Smtp-Source: APiQypI9jljsZYIL6rY8RKRiwnbj6kDleTMHf6wA63lFwlsPw+nCffNbOtTDchdqskHonLqM+cfk X-Received: by 2002:a9d:42f:: with SMTP id 44mr5319874otc.236.1586347438657; Wed, 08 Apr 2020 05:03:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586347438; cv=none; d=google.com; s=arc-20160816; b=HeKfj69YQ7X2yWK5YxJkHv25LvNqPIUAucfZY0L9I8E0bh9mpMsdnfqRmXL6r98y9x oqmEYP7iUqrt6sRkoF+gECse27X7fWLli1ckHEcerefsIEVmNgGVWypIcLUJmaY07Jw5 1n7ocKR98NV65lXdtVm7KglAFassd4P5kD2ne/ZHAhctHT38KdhI5W00zQRwbvxX58On Y+ImqO3GYSXJ7FIwUq9DToxYlbAM/vAljh3ZRtoWjI6zrLLtFGZVTki0xu545MvUrjcN cqRrnZFVVwmC/8nU1jUedRWdcoI1Fg7oM1RI8SFKcjQVTsu6D/h5B+YMKO8WFbjxVdiJ e9WA== 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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=MdI7hYvB8H59wJUy/bDd3DLvQ/Y7NjDPTi/6Y1N+3xo=; b=NZUGAVQz7dS4I3GMEYrEcVbPiaVfUN/zQpGOtayCr0ePCaSWUH8GMgFxQUP+P8BTl0 Tq1bvlnEHhdhINJMt/sA019/GczCbjtHOxmRttsuF1teRSPY9D3QqXqeveGNAvo8Y5Ml MOkzaGTxxrynHN6jpXWCWiI6L+AymMb1GHVOQNeKbiTBC5pBmSy9Q2A/coLSfyxWvG4j 4qqXJEReL8usVxOqh/3r6ENT3M4oBHtsk+3VbkPT6ooTyD/74AltwHho0GPXHPvRJosm QF1vo6eZUer1IgTV+m92jLh5FWgHcrTczAtAm9jnH51/IeO+8NQgCiaEjk7mPI3ugE/P xrxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=oBXgOvfK; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m1si2488216otn.91.2020.04.08.05.03.28; Wed, 08 Apr 2020 05:03:58 -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=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=oBXgOvfK; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728991AbgDHMAy (ORCPT + 99 others); Wed, 8 Apr 2020 08:00:54 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:49672 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728959AbgDHMAr (ORCPT ); Wed, 8 Apr 2020 08:00:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender :Reply-To:Content-Type:Content-ID:Content-Description; bh=MdI7hYvB8H59wJUy/bDd3DLvQ/Y7NjDPTi/6Y1N+3xo=; b=oBXgOvfKuQ0cA1zrUU+9FZZdxI Tw2KgK/EBdsvvKB2EjRHTs7YasIZU/GkBi/huPTCajO09wg0CGETLLloV0TI7bSWojpyNZ80xZPGK OU3rCXXboUvLt3gNTnCJeKXU7mpUIpXYVvl5ytOz8s5BDpkGD0We5krcZQz4bQrM5quUkr+bNDo4I Rlnv0VI+L4A+73DKzVs8UU733HXGiTIT49e173N8QcGPIX0wnWgmEOEdaMKXq1CBLLLecI3KVygXp Wrg/eTQDDD0S4LhbOVgCFmk4rPX0HsxVFRFpyu3ylRpAgygvSJsww6vi/+a0Vgd1zF7YluEqwwjbW OxqUj4Qw==; Received: from [2001:4bb8:180:5765:65b6:f11e:f109:b151] (helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1jM9Nc-00055R-Bm; Wed, 08 Apr 2020 12:00:29 +0000 From: Christoph Hellwig To: Andrew Morton , "K. Y. Srinivasan" , Haiyang Zhang , Stephen Hemminger , Wei Liu , x86@kernel.org, David Airlie , Daniel Vetter , Laura Abbott , Sumit Semwal , Sakari Ailus , Minchan Kim , Nitin Gupta Cc: Robin Murphy , Christophe Leroy , Peter Zijlstra , linuxppc-dev@lists.ozlabs.org, linux-hyperv@vger.kernel.org, dri-devel@lists.freedesktop.org, linaro-mm-sig@lists.linaro.org, linux-arch@vger.kernel.org, linux-mm@kvack.org, iommu@lists.linux-foundation.org, linux-arm-kernel@lists.infradead.org, linux-s390@vger.kernel.org, bpf@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 16/28] mm: remove unmap_vmap_area Date: Wed, 8 Apr 2020 13:59:14 +0200 Message-Id: <20200408115926.1467567-17-hch@lst.de> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200408115926.1467567-1-hch@lst.de> References: <20200408115926.1467567-1-hch@lst.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This function just has a single caller, open code it there. Signed-off-by: Christoph Hellwig --- mm/vmalloc.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/mm/vmalloc.c b/mm/vmalloc.c index b0c7cdc8701a..258220b203f1 100644 --- a/mm/vmalloc.c +++ b/mm/vmalloc.c @@ -1247,14 +1247,6 @@ int unregister_vmap_purge_notifier(struct notifier_block *nb) } EXPORT_SYMBOL_GPL(unregister_vmap_purge_notifier); -/* - * Clear the pagetable entries of a given vmap_area - */ -static void unmap_vmap_area(struct vmap_area *va) -{ - unmap_kernel_range_noflush(va->va_start, va->va_end - va->va_start); -} - /* * lazy_max_pages is the maximum amount of virtual address space we gather up * before attempting to purge with a TLB flush. @@ -1416,7 +1408,7 @@ static void free_vmap_area_noflush(struct vmap_area *va) static void free_unmap_vmap_area(struct vmap_area *va) { flush_cache_vunmap(va->va_start, va->va_end); - unmap_vmap_area(va); + unmap_kernel_range_noflush(va->va_start, va->va_end - va->va_start); if (debug_pagealloc_enabled_static()) flush_tlb_kernel_range(va->va_start, va->va_end); -- 2.25.1