Received: by 10.213.65.68 with SMTP id h4csp368406imn; Tue, 13 Mar 2018 07:00:51 -0700 (PDT) X-Google-Smtp-Source: AG47ELuniiK2dqfcvJ6tHvj4BPIic03i7DDeSmOI+lintPe29+poYHydUBfTotNZpu9attU9HP48 X-Received: by 10.99.105.7 with SMTP id e7mr576938pgc.193.1520949650877; Tue, 13 Mar 2018 07:00:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520949650; cv=none; d=google.com; s=arc-20160816; b=MjStZVFsBblMCZjq5N45gpJdkiikioqmmtX4vS5C1/iqUsi7r738CMv57Yunfxfg3b LNcnSITne6XbTyrvWc2CM0wegJ7Oq7Gq4v777csOc3HoZ8jdpPF2oFcvcGEPxv1NG8FK 17O56LHniQ5yH1bueYRzhxqoJ1zlgoVLIdqc5/25BQ8ewnNRHGEVlfQ49MjToyoza+1y XkmFl53bs+rXDRZTBuQn3y3hkPEY9jTSQaQKNXqQ05PPq9thj0ToEVdmAFdB0SWiCfGS eyBx8PouZ6nztUzZj4rz9lMNW4WqkIZ0K0L0EAMedjbLM3/wahpZMbgXizxHNUP6NTjS rqCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=lRwqAg9yO1KXEjTm9Y3lyHOwtX2RN7vMIDvC03R853w=; b=DItaK+9ChDRqPlBHoBcudRQKqxhoCzWOenVMSN8/KfZq+KwC+qRg5/sR1loUlBliVm IO/nWXqgHxrL1/XsDP/x5ld+wohx78ijOHktrkFkPUpyk5MzvcjUkKOe0bm1wZGEh96M lm3zTHNJ6K3VX/sTAcovEMOdafay5YLMFp99nSH/NwaoADo6AtjK+lSI1sXw3Pv65S+d jhT3zGwAPVax97y6j4xqd1JphNwuqrgDHtiiZKApa/w/tjl0Gcjs/4AUBfizOVJ9pgnE xGc1phHMzXlM/jToppVzJsr9wkX3ChfDdr8n0B8APEV1LIM/zJDj+0z/yWt6h05piTE0 ReTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=IqbEQKR4; 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 u19-v6si144058plq.120.2018.03.13.07.00.34; Tue, 13 Mar 2018 07:00:50 -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=IqbEQKR4; 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 S1752442AbeCMN0p (ORCPT + 99 others); Tue, 13 Mar 2018 09:26:45 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:34960 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751673AbeCMN0n (ORCPT ); Tue, 13 Mar 2018 09:26:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=References:In-Reply-To:Message-Id: Date:Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=lRwqAg9yO1KXEjTm9Y3lyHOwtX2RN7vMIDvC03R853w=; b=IqbEQKR42pZu+6lqDPgMMc4/A ORS1bEqvia1v44eRDt/z/gXgGJkM8lbLBe/BCakzYBtLP1AueZBlojrBRnShc5eVtC/mTItqC/RRv KG7xN8QhLYsFMeYEfMLQHa0Iax8SPyGQEAB7EkdNuOQnmxMbwjpSwJ787VWMIvWf/rTpJ5Agpv7QP pTr/DvVkTuMqqxThI2M7v8qEX3leoNdmx/Y/P74pl24owxYPGMp/vi9kKlMmMqKtnKBbXq5xlHtje yETkXTV4vfvqKbEmpGuHObMm8qiwuR7sh0EU1eJ+Mds1ghEGaZJMJqy1GeMimjM8gEoI/quekLHry knUb/0X+A==; Received: from willy by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1evjwv-0004Yz-Ts; Tue, 13 Mar 2018 13:26:41 +0000 From: Matthew Wilcox To: Andrew Morton Cc: Matthew Wilcox , linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-fsdevel@vger.kernel.org, Ryusuke Konishi , linux-nilfs@vger.kernel.org Subject: [PATCH v9 03/61] arm64: Turn flush_dcache_mmap_lock into a no-op Date: Tue, 13 Mar 2018 06:25:41 -0700 Message-Id: <20180313132639.17387-4-willy@infradead.org> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180313132639.17387-1-willy@infradead.org> References: <20180313132639.17387-1-willy@infradead.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Matthew Wilcox ARM64 doesn't walk the VMA tree in its flush_dcache_page() implementation, so has no need to take the tree_lock. Signed-off-by: Matthew Wilcox Reviewed-by: Will Deacon --- arch/arm64/include/asm/cacheflush.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/arch/arm64/include/asm/cacheflush.h b/arch/arm64/include/asm/cacheflush.h index 7dfcec4700fe..0094c6653b06 100644 --- a/arch/arm64/include/asm/cacheflush.h +++ b/arch/arm64/include/asm/cacheflush.h @@ -140,10 +140,8 @@ static inline void __flush_icache_all(void) dsb(ish); } -#define flush_dcache_mmap_lock(mapping) \ - spin_lock_irq(&(mapping)->tree_lock) -#define flush_dcache_mmap_unlock(mapping) \ - spin_unlock_irq(&(mapping)->tree_lock) +#define flush_dcache_mmap_lock(mapping) do { } while (0) +#define flush_dcache_mmap_unlock(mapping) do { } while (0) /* * We don't appear to need to do anything here. In fact, if we did, we'd -- 2.16.1