Received: by 10.223.185.116 with SMTP id b49csp4151430wrg; Mon, 19 Feb 2018 12:05:50 -0800 (PST) X-Google-Smtp-Source: AH8x2254s4M38okS0LGAaJY7IDe/7G6DhHdcLimUykW+it+q+AhubPACbhN7+5uXEeObQLpkI2/c X-Received: by 10.101.97.139 with SMTP id c11mr3451689pgv.449.1519070750310; Mon, 19 Feb 2018 12:05:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519070750; cv=none; d=google.com; s=arc-20160816; b=uQENKXyNRNB9RvnCUP2m7Mv5dAlTJgLD0NwefGuIWH9qodew/b54V0ff4rgJMKTBpn XST8yn8c27lATolyK1A0nPhh5MySP89R5NW5+OI32TrMty5/fm7MOBJN0lbHFKAeTkKe gOJpdbIqtxL87s9GT1rrjp+ppel2ZyjZeXx06FLve0RepdODp48gatv785zCVP+TWWjB /P5wsyY1/oryByCGuJg7YlKCMpC7+85k4y9EZZJsacsc7o8nvygPZUXDU2mggCphiYQb mZrSlEYzcTFAR0EOfKwu7LNdruPvFlBPUY8cd/h7FtdFdtnL9FzFPFposH1t198vHWFu GfMA== 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=LNdl9xwnGce9andWyEPDDsS6Pi2hPfcZinV72VWZDgg=; b=cHLNS/pX9jX2zB66keq9uEuy33K8OIXgt0pxHGY7tOvHZuWbcslOaTp95PQeTxezVA aLNC+LcTUhl/ys6lXeXsJa9LYVbPqlVe3KjMozfDWF9V63Vk0Se6ibo6930YkzMe3cvU +QeyqV1NQwHXiuayk5iYS5TpAjOl3VTDTnwMTJX3NuY+e3k6zcdWLCeD0QIQg4KGrP61 QmyOsfbFSiXDVTwZ/lx2Y3ZHgkVF7AaebVmj+WlZRFyRCUGP4xP2yWJgF37fTvge5/HV sqgCEVUcmT2KoMTuY4d3dXt7VM6xhSnSs38S7Uas9qLviqU94EWb6KMmzLKdkDbWte2C eTKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=tIitwVir; 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 g65si1951541pfg.412.2018.02.19.12.05.35; Mon, 19 Feb 2018 12:05:50 -0800 (PST) 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=tIitwVir; 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 S932152AbeBSUEt (ORCPT + 99 others); Mon, 19 Feb 2018 15:04:49 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:44524 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753578AbeBSTqG (ORCPT ); Mon, 19 Feb 2018 14:46:06 -0500 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=LNdl9xwnGce9andWyEPDDsS6Pi2hPfcZinV72VWZDgg=; b=tIitwVirL22v4UEJP+X6x/c/b XZscyb7Ut81WLo4zrI1xQhJbHLGpmucXrq10hTXbx2K/AkuPRdWDwZVGDjDEOBDSMQRu5gjbc4LMi PgHR3qhz75wBxs3iqS5qi7XN49yt+NUAUERHI32hrQ94c5BDP1vXCE9AQs5zqcRFCSGnCBmQWKxXj CZ0QWUE8HqA5rUTmDPlxh/GGPPlNoRgDNgbz+e3mSOjsGhHQoTdEBVJH9BdQMQZpHD0W5Xv16OHdi eSPJcayI5vIdUEu4MgrkZPomwTJdxvB8/ukuIFbCQP4XlP5XC5aTdnhFMoRfC9j2NtvlPf5o3OF/W uyOMZYflA==; Received: from willy by bombadil.infradead.org with local (Exim 4.89 #1 (Red Hat Linux)) id 1enrO0-0001jx-KG; Mon, 19 Feb 2018 19:46:04 +0000 From: Matthew Wilcox To: Andrew Morton Cc: Matthew Wilcox , linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-fsdevel@vger.kernel.org Subject: [PATCH v7 04/61] unicore32: Turn flush_dcache_mmap_lock into a no-op Date: Mon, 19 Feb 2018 11:44:59 -0800 Message-Id: <20180219194556.6575-5-willy@infradead.org> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180219194556.6575-1-willy@infradead.org> References: <20180219194556.6575-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 Unicore 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 --- arch/unicore32/include/asm/cacheflush.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/arch/unicore32/include/asm/cacheflush.h b/arch/unicore32/include/asm/cacheflush.h index a5e08e2d5d6d..1d9132b66039 100644 --- a/arch/unicore32/include/asm/cacheflush.h +++ b/arch/unicore32/include/asm/cacheflush.h @@ -170,10 +170,8 @@ extern void flush_cache_page(struct vm_area_struct *vma, #define ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE 1 extern void flush_dcache_page(struct page *); -#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) #define flush_icache_user_range(vma, page, addr, len) \ flush_dcache_page(page) -- 2.16.1