Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp3865095ybz; Mon, 20 Apr 2020 10:52:02 -0700 (PDT) X-Google-Smtp-Source: APiQypKkTYhBAZgIN+ljR6nnKxP1Xt3Fk6DRTlS37L1ey0/FZnXA2bJWC6HSs8/XXvUautM3u6oc X-Received: by 2002:a05:6402:22cc:: with SMTP id dm12mr15717293edb.159.1587405122529; Mon, 20 Apr 2020 10:52:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587405122; cv=none; d=google.com; s=arc-20160816; b=z7ty/kNQ6OQi6eH+UEAEuIM2v08BJa9Q9uZ+V1jhrZc9dAd72L95vqWK3UH704OkDu gu7GG0FtzcUs6dkT3uAQys79PhOR+KH2fwWOH90+Z/muZCNlUiJyg4GW36aCvunL7b4S ERau6q8rNky8HpzFrDiweSzomqlVIvThIlh4tg8G/+q8YnozsdPrcr+3gLszsl+lmwBZ BQeBykjtN8jDzIpSPR+KMZJ2HJxYst/ylqLSGoLCkzf3HY+xe+f4mNqk0KNoY74xUmYy yuUAm9OlSaYI1fJeK2RYzPp4pGSQcAdPvpjuxhAZHoNQxYvbpOPaQ32ujUzx2Sl9rJb/ 2o/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:ironport-sdr:ironport-sdr; bh=mMM1dddNS3ivH6KFDyG905sB94qrL/rEKfNex5exi4c=; b=E0qrMcB//AOVFXWYE0plSa5thzQzNtDvDKukSJmySIqPjzpy+M1KT3uFH8PhZT/4t4 yq98rM1hsdCFGO+Td+LkBu6R/rR857JIC56sbzlnno0Ugd2VxHg23ru9csERAD3yNIQL YaBWcwhoZnudTISFRINPZ9ztHSlF63SJ5clIkb/66vuAYw72AJRKLOUoEFPvcwF/4oL4 wlj6DWbmK366msTKy++25LXlgyV2ov6y+XcPvTGY18HFd8kAcyi/v8P3XaN3+0FY2Ost E8E3UdE86Ue10NRJBbU0DKNGZ5bJ5lsggWynWvD3l3VzNvQF7iAS720tA7+KmNPdEobT F8HA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id cw21si946848ejb.158.2020.04.20.10.51.39; Mon, 20 Apr 2020 10:52:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1727001AbgDTRuD (ORCPT + 99 others); Mon, 20 Apr 2020 13:50:03 -0400 Received: from mga05.intel.com ([192.55.52.43]:32432 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725784AbgDTRuD (ORCPT ); Mon, 20 Apr 2020 13:50:03 -0400 IronPort-SDR: j4KjzegMtVuHtNFs8k/MSV58Cfzrx2YBfVI9Koo3ZlOhliXBECx+9iPocA1yUI4VlhrI9CoaPS Q62C/ygfKqLQ== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Apr 2020 10:50:03 -0700 IronPort-SDR: ThbZkBRL0/1in8byZP0/RBVo7FL6Oc2SA7ZPR4MiDXbeiER3enyqOnImzGN1dzeZqNulAFjQG0 jXK6zE8kka+Q== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,407,1580803200"; d="scan'208";a="290175933" Received: from iweiny-desk2.sc.intel.com ([10.3.52.147]) by fmsmga002.fm.intel.com with ESMTP; 20 Apr 2020 10:50:02 -0700 Date: Mon, 20 Apr 2020 10:50:02 -0700 From: Ira Weiny To: Dave Chinner Cc: linux-kernel@vger.kernel.org, "Darrick J. Wong" , Jan Kara , Dan Williams , Christoph Hellwig , "Theodore Y. Ts'o" , Jeff Moyer , linux-ext4@vger.kernel.org, linux-xfs@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: Re: [PATCH V8 04/11] fs/xfs: Change XFS_MOUNT_DAX to XFS_MOUNT_DAX_ALWAYS Message-ID: <20200420175002.GA2838440@iweiny-DESK2.sc.intel.com> References: <20200415064523.2244712-1-ira.weiny@intel.com> <20200415064523.2244712-5-ira.weiny@intel.com> <20200420021555.GB9800@dread.disaster.area> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200420021555.GB9800@dread.disaster.area> User-Agent: Mutt/1.11.1 (2018-12-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 20, 2020 at 12:15:55PM +1000, Dave Chinner wrote: > On Tue, Apr 14, 2020 at 11:45:16PM -0700, ira.weiny@intel.com wrote: > > From: Ira Weiny > > > > In prep for the new tri-state mount option which then introduces > > XFS_MOUNT_DAX_NEVER. > > > > Signed-off-by: Ira Weiny > > --- > > fs/xfs/xfs_iops.c | 2 +- > > fs/xfs/xfs_mount.h | 2 +- > > fs/xfs/xfs_super.c | 8 ++++---- > > 3 files changed, 6 insertions(+), 6 deletions(-) > > > > diff --git a/fs/xfs/xfs_iops.c b/fs/xfs/xfs_iops.c > > index 81f2f93caec0..a6e634631da8 100644 > > --- a/fs/xfs/xfs_iops.c > > +++ b/fs/xfs/xfs_iops.c > > @@ -1248,7 +1248,7 @@ xfs_inode_supports_dax( > > return false; > > > > /* DAX mount option or DAX iflag must be set. */ > > - if (!(mp->m_flags & XFS_MOUNT_DAX) && > > + if (!(mp->m_flags & XFS_MOUNT_DAX_ALWAYS) && > > !(ip->i_d.di_flags2 & XFS_DIFLAG2_DAX)) > > return false; > > > > diff --git a/fs/xfs/xfs_mount.h b/fs/xfs/xfs_mount.h > > index 88ab09ed29e7..54bd74088936 100644 > > --- a/fs/xfs/xfs_mount.h > > +++ b/fs/xfs/xfs_mount.h > > @@ -233,7 +233,7 @@ typedef struct xfs_mount { > > allocator */ > > #define XFS_MOUNT_NOATTR2 (1ULL << 25) /* disable use of attr2 format */ > > > > -#define XFS_MOUNT_DAX (1ULL << 62) /* TEST ONLY! */ > > +#define XFS_MOUNT_DAX_ALWAYS (1ULL << 62) /* TEST ONLY! */ > > As this is going to be permanent, please remove the "Test only" I did that in the next patch... But I'll move it here. > comment and renumber the bits used down to 26. - the high bit was > used only to keep it out of the ranges that permanent mount option > flags used... Ok, done for v9 Ira > > Cheers, > > Dave. > -- > Dave Chinner > david@fromorbit.com