Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp617771ybv; Thu, 20 Feb 2020 04:28:25 -0800 (PST) X-Google-Smtp-Source: APXvYqxETnOknCcSxKiOsO1Kf99Tw91+nIlnxbhqMzPSb5DJWDrxv8XFhRIwwd+T71BW+sbRUKYV X-Received: by 2002:a54:4091:: with SMTP id i17mr1819555oii.99.1582201704872; Thu, 20 Feb 2020 04:28:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582201704; cv=none; d=google.com; s=arc-20160816; b=vvUmnQbaSH5WtwD8z1dxQUs1zM2KuhtSi7wS2H+QqABZX+MxNqxlYqRvF83fYDCjLs fHRt4S5PrdD/JVCtRgAJ86IrlCYsQb+xTa5gxLtA8h3HOAe5JzqR5qmLSrzrAyMIGBgn 8+4nThV4hiBf9smm0nndtrM+/2/Bl3iwQTqSiJay80V5S3pDoOSJku1Ex8frOl7NfVhx WOrPgILw7/tFlfeSt0rT6FHKkMvnNRSOE0xmbUYHIeDuuP8zB6eZxMayyKU/uo4/3BpV j6rPtvScXVXCFPgYQbOizKH/U0Ni8jRLdEAhHXiOBP7ik4AKHgSwx9BtzzrqJQqEiqhN nVEg== 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=TCsC1gtCEf1xIgmJjK45ZLz4gY6XJX8ZlhAVxP2mfVU=; b=dio/SB1y92Z9oidgFfkwqjr0AaATlMkNn9BbWcbg/nBgZrZY4g9SyR/yD6PXmfAdAf 03ue74rQrHX4rb/sYCqAFS3cBdWq0ktmUPo6SmK04JA9C7w2RvPvE4bD1xi+qJKw+oWn eYjb3nCxm5Ww7qtn8lcDo9v5hEQJo8DrMiDu9BtJTaNLKFV+oNVmoVYHNnzfWfHZEVgJ 29NEWc/acaIA+ywB9RdUkIPBNSOb1VZsX32Q2NF+EclEGILckfXwVM5R2M67/qg3wR0Z jAaALRajBPctmIgoxkn0iQY3DSyfhEOkISNbAY/bzRXZyE8XD4yzpkFoXb8O28bSuHuh Fd6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@shipmail.org header.s=mail header.b=OaILxhm+; 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 9si9998986oiq.104.2020.02.20.04.28.12; Thu, 20 Feb 2020 04:28:24 -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 (test mode) header.i=@shipmail.org header.s=mail header.b=OaILxhm+; 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 S1728086AbgBTM1p (ORCPT + 99 others); Thu, 20 Feb 2020 07:27:45 -0500 Received: from pio-pvt-msa1.bahnhof.se ([79.136.2.40]:33902 "EHLO pio-pvt-msa1.bahnhof.se" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727983AbgBTM1m (ORCPT ); Thu, 20 Feb 2020 07:27:42 -0500 Received: from localhost (localhost [127.0.0.1]) by pio-pvt-msa1.bahnhof.se (Postfix) with ESMTP id 9D9583F5AE; Thu, 20 Feb 2020 13:27:40 +0100 (CET) Authentication-Results: pio-pvt-msa1.bahnhof.se; dkim=pass (1024-bit key; unprotected) header.d=shipmail.org header.i=@shipmail.org header.b="OaILxhm+"; dkim-atps=neutral X-Virus-Scanned: Debian amavisd-new at bahnhof.se X-Spam-Flag: NO X-Spam-Score: -2.099 X-Spam-Level: X-Spam-Status: No, score=-2.099 tagged_above=-999 required=6.31 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no Received: from pio-pvt-msa1.bahnhof.se ([127.0.0.1]) by localhost (pio-pvt-msa1.bahnhof.se [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id KPHY7eEQ--tJ; Thu, 20 Feb 2020 13:27:39 +0100 (CET) Received: from mail1.shipmail.org (h-205-35.A357.priv.bahnhof.se [155.4.205.35]) (Authenticated sender: mb878879) by pio-pvt-msa1.bahnhof.se (Postfix) with ESMTPA id D431E3F49A; Thu, 20 Feb 2020 13:27:34 +0100 (CET) Received: from localhost.localdomain.localdomain (h-205-35.A357.priv.bahnhof.se [155.4.205.35]) by mail1.shipmail.org (Postfix) with ESMTPSA id 3EE2336016F; Thu, 20 Feb 2020 13:27:34 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=shipmail.org; s=mail; t=1582201654; bh=eCvHiFbQ8gHm9NDwNOq1qIsqK0H59VOA9pzhD1uajyo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=OaILxhm+m7Xx+sHfC/nWT+noYt2XqhlrgBZf39HjE8aNaMUsJLdLkJIpWaqRjoP/2 GuSF1hBbFqiXS4Yk/iWspgncQydoGsgzMJxV2Mv2BI7vlb9bJWJOWS4TfdIDXAvz+D wOW+v2Y6UEYOWiCEH4GxmH+RSCwPV0ZXVwcKYhCk= From: =?UTF-8?q?Thomas=20Hellstr=C3=B6m=20=28VMware=29?= To: linux-mm@kvack.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Cc: pv-drivers@vmware.com, linux-graphics-maintainer@vmware.com, Thomas Hellstrom , Andrew Morton , Michal Hocko , "Matthew Wilcox (Oracle)" , "Kirill A. Shutemov" , Ralph Campbell , =?UTF-8?q?J=C3=A9r=C3=B4me=20Glisse?= , =?UTF-8?q?Christian=20K=C3=B6nig?= , Dan Williams , Roland Scheidegger Subject: [PATCH v4 1/9] fs: Constify vma argument to vma_is_dax Date: Thu, 20 Feb 2020 13:27:11 +0100 Message-Id: <20200220122719.4302-2-thomas_os@shipmail.org> X-Mailer: git-send-email 2.21.1 In-Reply-To: <20200220122719.4302-1-thomas_os@shipmail.org> References: <20200220122719.4302-1-thomas_os@shipmail.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Thomas Hellstrom The vma argument is only dereferenced for reading. Cc: Andrew Morton Cc: Michal Hocko Cc: "Matthew Wilcox (Oracle)" Cc: "Kirill A. Shutemov" Cc: Ralph Campbell Cc: "Jérôme Glisse" Cc: "Christian König" Cc: Dan Williams Signed-off-by: Thomas Hellstrom Reviewed-by: Roland Scheidegger Acked-by: Christian König --- include/linux/fs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/fs.h b/include/linux/fs.h index 98e0349adb52..4f41fdbf402f 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -3367,7 +3367,7 @@ static inline bool io_is_direct(struct file *filp) return (filp->f_flags & O_DIRECT) || IS_DAX(filp->f_mapping->host); } -static inline bool vma_is_dax(struct vm_area_struct *vma) +static inline bool vma_is_dax(const struct vm_area_struct *vma) { return vma->vm_file && IS_DAX(vma->vm_file->f_mapping->host); } -- 2.21.1