Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1335629ybb; Wed, 25 Mar 2020 21:38:03 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsDg7uymIcecfgdI0N5RSXzs5WDfV7ygb9PrhB5sKf4Iq0TOCSuYCTZfQrGMimjY31s24wh X-Received: by 2002:a05:6830:1aca:: with SMTP id r10mr4473643otc.330.1585197482938; Wed, 25 Mar 2020 21:38:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585197482; cv=none; d=google.com; s=arc-20160816; b=Ob4EChwnfFfuOuPG3xE//LRiW+0TXazQYiZfnfiarEk0JEnKgFlqIAPUmKL/3bZCYs 3udf9JPdfK+dAkIHWPpe7o5byGij41WdTXUMb3cEwIUU7UXo+JxjHb7cWwtBsXZByTfk FfxQUJ5VgNj/EeESECfl2rDaD7uoqOo56/UhwJMF//iRsEUkddriN2nEZnHDbGLKBi/o sJjVQ5C7O/4vzb871IxPUO2xhziZr3PBm159XzzI/fG+DA2/R9Iic+lfdjQbXk0Z9a/i zta6sAfDGvvgzu/JVs0Ws5gz4XDggoPJh+ZRCM3CvA6KRki2BPtNcSJysuosRNdxz4kD HfUw== 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:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=y20CeGQScdwXv2e5cBbGORXlmOAQqvqGM8Tbmxh+s8U=; b=yREqW9vbj8+VblSoDExghWaLtYVQraMqERB4OAcHlzQUlZ1NO+h+Jqlr1IDcJR3JC2 xoBhxMMGPi1+FAKqZxBxW/A19DV2dFpbNYS3NuHFs20Gd+Oz4bd5BdQZC0l0at9JUIrg MWrv8RKB29GlXI+KYUPog0ubtCTQSCwggLfAeulUy5cPL/SwMpMCuVHkiHaulawENpN3 AyLtDtn7X4zcgwPzaRRLjzUa7/8iM0JcXOqQng9SbixHZpJ7CHhdCc+6YM/trFvxITRq unssyhzrJEKSme7SleZ4GUVYUg3JL4xB8/LFMMmJ1nTw3SdMgH6OpLX6GeUube/F7my2 4JOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=NnPN28SR; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t125si492457oie.167.2020.03.25.21.37.50; Wed, 25 Mar 2020 21:38:02 -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=pass header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=NnPN28SR; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726038AbgCZEhB (ORCPT + 99 others); Thu, 26 Mar 2020 00:37:01 -0400 Received: from mail-ed1-f68.google.com ([209.85.208.68]:44214 "EHLO mail-ed1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725775AbgCZEhA (ORCPT ); Thu, 26 Mar 2020 00:37:00 -0400 Received: by mail-ed1-f68.google.com with SMTP id i16so4439467edy.11 for ; Wed, 25 Mar 2020 21:36:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=y20CeGQScdwXv2e5cBbGORXlmOAQqvqGM8Tbmxh+s8U=; b=NnPN28SRXi1uUhX29Dz/ecQfFMQ9NJKJyWfz57OCY+So4pdu/YOtIs8TLBwkfsbit8 L86CQNndJIPSxbZw7+4McwCfFyqnS6QAt1fSE5U6H3Nkqv2JcsH+BTOz8r1B0Uc8Po1Z FgR6DJqLubRVXNqXIs/ECINnaIo/eKg3fGwLnsgMno5LAY1Pq7LQB8Q8gF3vAkoCcfMl vnzZaNxFqEbBn7VWrLnFQoq2BGEYck/v2nPHqISNO3LxmmA59JHDiQBRYPWN1ddlZtC/ o2henSodF7cP9rrq67FXCK5UY4MkegV791GX8DXKjyZFfwDOuyMKqMfSIUGM48MvD7s8 I4OA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=y20CeGQScdwXv2e5cBbGORXlmOAQqvqGM8Tbmxh+s8U=; b=Ek8IO97t5qiY0zCPHQ9JHFNYK1dNX0WfTMB+5zGoqprlXi76512TrG5oTkYe0KO7AJ pC+Lbv4jGEUoHI/KDvbCuhwRy1v/8aTlsBDqGpyXxL/DErkVIL1+/65Mi83/Im/lwzjR CtRuiQZBvLDbWtWXSxAP+jKUm9E7z9qywAZFT5fdvMkZyjsQa6276+ZjWIz+DSUBIu+o b3fJNZwfD2jhUg0Q6FnEckiBXHDem/mQEvmUpcmGXFnrXOrg46T1TbHrAgpl1UGztIwn YXPhVnczKHESBjjCXI/8Znwnz1CU0ZWSYA3U3hFst6z1p7pmmsjVf7ztOmkUuDct4zdV 772g== X-Gm-Message-State: ANhLgQ14OZWfpB9eULrjIUXjpVtpt2bnJHBzuS8BAe+qcy+D+Ih+6RWb wHnFPGdEJSnqEyKtwQfa5xAGGI/ygi62v2Z3VkGs0jLi X-Received: by 2002:a17:906:6987:: with SMTP id i7mr6196042ejr.12.1585197418839; Wed, 25 Mar 2020 21:36:58 -0700 (PDT) MIME-Version: 1.0 References: <20200220122719.4302-1-thomas_os@shipmail.org> <20200220122719.4302-2-thomas_os@shipmail.org> In-Reply-To: <20200220122719.4302-2-thomas_os@shipmail.org> From: Dan Williams Date: Wed, 25 Mar 2020 21:36:47 -0700 Message-ID: Subject: Re: [PATCH v4 1/9] fs: Constify vma argument to vma_is_dax To: =?UTF-8?Q?Thomas_Hellstr=C3=B6m_=28VMware=29?= Cc: Linux MM , Maling list - DRI developers , Linux Kernel Mailing List , 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?B?SsOpcsO0bWUgR2xpc3Nl?= , =?UTF-8?Q?Christian_K=C3=B6nig?= , Roland Scheidegger Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 20, 2020 at 4:27 AM Thomas Hellstr=C3=B6m (VMware) wrote: > > 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=C3=A9r=C3=B4me Glisse" > Cc: "Christian K=C3=B6nig" > Cc: Dan Williams > Signed-off-by: Thomas Hellstrom > Reviewed-by: Roland Scheidegger > Acked-by: Christian K=C3=B6nig > --- > 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); > } Looks good to me: Acked-by: Dan Williams