Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1101134ybk; Wed, 13 May 2020 23:55:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwgnnUJ2cx5Jugo+dvYRfdlTFDn8QXK1FE8ghfFO40ZCG/TcUn++WSZ2aETMcRRzuRcHqxS X-Received: by 2002:a17:906:4957:: with SMTP id f23mr2583805ejt.340.1589439354970; Wed, 13 May 2020 23:55:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589439354; cv=none; d=google.com; s=arc-20160816; b=VGYfzFvfXh0MPGtcNO3Mm9K/3pRZCYpVcXdvuWu5ZKqDBU22Qgkg6bzph/fOULLrGb ROtYaUDhnd/rl+BmP9p6X5XI5LgMrm3Xdh2a30sf3ZvgR3WiC4IbF3z4/3Cm2xbpfrEL XSA2NFn+aIAYPTsTtE3o4IVezgKzkRWMs95dC7NZm0o3tCIwQ/hZMCkQk3tFbFSj5kcm M8sRgFvu/COUAf4O4g3BOF95L+jgpn4AFmk0QYr57RRNziPod+pjC0aGMC10T2wmNBgr OtJ/h9pl79tIwGse2z5UPwuNzFjt5P4IYIe3LEieFD0Ju6Igwh71rxyAVb3prD50U5xn a0AQ== 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=NLEjI+Ryk/s3nMEkIgDL4rwJaalbRvwE+Ipfo7cw/DY=; b=YBnq1sSoqUL7+sVuuZXJ8ssH2wQMbRD6rQIU80CGAe10FMfZJnCqfUmAj/tHoh5bA/ 8gDYZouFfVm6DhPOic8Bp9CzVmd1t9cXInO6AubVYvLkMLN4pY3mIfr87adzZVT0cOib 7kTR3vkSR216IZMRsnjUQcSJK1fdwZRN4iz0bgKrGiRQ4UMQ9wYzyTTE0Yo3TeYCjRbU qQOSWhITkJu8cg4FLby4fhkBF1iyv4XQqp4K/TUv/ZLhdFAD0hVDiu4rnw+D7g/RSHlT mob3orZ92TxMqlnqd65hRmLALpRq1uYJC9DHk5bwZy8sIA+eXIQ3l1Y2wXWD2QqfspbS mBkg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-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 p22si1058082edx.177.2020.05.13.23.55.32; Wed, 13 May 2020 23:55:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-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-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-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 S1725909AbgENGz0 (ORCPT + 99 others); Thu, 14 May 2020 02:55:26 -0400 Received: from mga07.intel.com ([134.134.136.100]:24279 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725831AbgENGz0 (ORCPT ); Thu, 14 May 2020 02:55:26 -0400 IronPort-SDR: LmGVgLkRdaEFxxRrNnTbG+YU0GlEAgYw34/dzCUlj86jByMeJRw6Vgoc+9xFH6z0bNVLytw6bW tdG0oK4nQqHw== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 May 2020 23:55:25 -0700 IronPort-SDR: 4EAhcH2eyjRNOzx8+C1/Q5Cp+otOL2Ga0272rzp6JWprrN/Q7Ido8gTOuH7YhUPeM66uO8vav/ LKhqViWQUQGA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,390,1583222400"; d="scan'208";a="464413086" Received: from iweiny-desk2.sc.intel.com ([10.3.52.147]) by fmsmga006.fm.intel.com with ESMTP; 13 May 2020 23:55:25 -0700 Date: Wed, 13 May 2020 23:55:25 -0700 From: Ira Weiny To: Jan Kara Cc: linux-ext4@vger.kernel.org, Andreas Dilger , "Theodore Y. Ts'o" , Al Viro , Dan Williams , Dave Chinner , Christoph Hellwig , Jeff Moyer , "Darrick J. Wong" , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 8/9] fs/ext4: Introduce DAX inode flag Message-ID: <20200514065524.GC2140786@iweiny-DESK2.sc.intel.com> References: <20200513054324.2138483-1-ira.weiny@intel.com> <20200513054324.2138483-9-ira.weiny@intel.com> <20200513144706.GH27709@quack2.suse.cz> <20200513214154.GB2140786@iweiny-DESK2.sc.intel.com> <20200514064335.GB9569@quack2.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200514064335.GB9569@quack2.suse.cz> User-Agent: Mutt/1.11.1 (2018-12-01) Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Thu, May 14, 2020 at 08:43:35AM +0200, Jan Kara wrote: > On Wed 13-05-20 14:41:55, Ira Weiny wrote: > > On Wed, May 13, 2020 at 04:47:06PM +0200, Jan Kara wrote: > > > > > > So I think you'll have to check > > > whether DAX flag is being changed, > > > > ext4_dax_dontcache() does check if the flag is being changed. > > Yes, but if you call it after inode flags change, you cannot determine that > just from flags and EXT4_I(inode)->i_flags. So that logic needs to change. I just caught this email... just after sending V1. I've moved where ext4_dax_dontcache() is called. I think it is ok now with the current check. LMK if I've messed it up... :-/ Ira > > Honza > > -- > Jan Kara > SUSE Labs, CR