Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1096072ybk; Wed, 13 May 2020 23:44:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwq9J5QsbgbLGhHKdoXVs/5OEcgm+Dv+yGJJqoLFDvMui1k2F9BdV6u7+YM5ioYxC39bCo1 X-Received: by 2002:a17:906:f98f:: with SMTP id li15mr2351380ejb.259.1589438663106; Wed, 13 May 2020 23:44:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589438663; cv=none; d=google.com; s=arc-20160816; b=RWHn5yvSUt58JIl5Kz4pmnJsPt21flYDJm2LoLoS/BfT1fxGi/8M0SajR3SxByOfud DDW9KADUJmEsMt1E9aS+IRSCfzJtmHTMwbXJNjlW7VhFM9eP9n6vysY8WumSscB9korX pMAGie3ghMstotr+A5vuazLNw+9OKsSY7dZITTC7uTUIBavbTd1Hi1wOY0EQHTWKhPxt aplmGWPUK2ucJMYaW8TOXvYBcoZfyCWqsx2vlSSMQlAo4NuHqe+zxNDBU1Zcr7RojF1m 3TFe6b411g+UfO9jatq2fgw3f8SyValNHykXQyw81FYw0kB20Fj8DN/wpizZG3SmGGdm E32w== 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; bh=PFm/r6wWfmwt6Lg+eaXq+7Uyr0TBUhc0zzv6B0ccmnE=; b=ubOQd4S4cA9dLjo5ul4kJEcuUGP47rpfhIkarzMtpDaCfto0JTcnU8JZkMypcvNL9Q TaLw0GUBG7vxnKB5aic5cPdjYLOof6mLTP4GRgJDXGg3EhzkDL8gMHOVbMFVy4TLOOnY 0t+7daINE2l/Qi27yUB/+Yaiu8LVGx3C/EpVxYLwHaKGT3285AdH9fAlTaV0NOSLMrC0 XwVDXEcBsWYCsoHjXiVoaf+Dw7FQ0fQQuKgFOoZb4Qf5Vo1XiSiKDDzwUZQqB6CBbooI ppa8ns5w1ZNJFeE1nKjRSQJq12YW4fdigJtBFT+8aHbrJTn0roHR6fNgLxpheXSj6rlz gRIA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i12si1117307edl.294.2020.05.13.23.43.51; Wed, 13 May 2020 23:44:23 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725878AbgENGnj (ORCPT + 99 others); Thu, 14 May 2020 02:43:39 -0400 Received: from mx2.suse.de ([195.135.220.15]:47688 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725831AbgENGnj (ORCPT ); Thu, 14 May 2020 02:43:39 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 23C0EAE4B; Thu, 14 May 2020 06:43:40 +0000 (UTC) Received: by quack2.suse.cz (Postfix, from userid 1000) id E48FE1E12A8; Thu, 14 May 2020 08:43:35 +0200 (CEST) Date: Thu, 14 May 2020 08:43:35 +0200 From: Jan Kara To: Ira Weiny Cc: Jan Kara , 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: <20200514064335.GB9569@quack2.suse.cz> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200513214154.GB2140786@iweiny-DESK2.sc.intel.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org 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. Honza -- Jan Kara SUSE Labs, CR