Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp2305402ybz; Thu, 23 Apr 2020 15:36:53 -0700 (PDT) X-Google-Smtp-Source: APiQypK11ZjBm1SHNEjWKk6m53/dIUlzOiafHZZVen7MfpX1MpKLKOGjobxCH9NrM4zY7Y74wVgD X-Received: by 2002:a17:906:748c:: with SMTP id e12mr4415112ejl.375.1587681413514; Thu, 23 Apr 2020 15:36:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587681413; cv=none; d=google.com; s=arc-20160816; b=IKCPzYIOITC+eQBfvcNsvQwSOqywfQv6KDVhQE7//D+o2Ni1rnK3JXS/ax2FeofRwR UUfQ7ehO/Do9946RMiM+/sPPmZ5pi7jh0BcpWMmgZj3cYML2on+Vx3EFIODs9Nx34AUl 8d+9zqbbF77YXtsg3JW3OW5Ecs4p0+5ulU9WfTYn4DHQ8cAxUUx2MKv0TNUQN6gXDI26 7wyQjH+Il7Vo8thFsiuvU+VOi6iBJXoxnkAXf7WaVb3+Boj4mPD49QUXWq2iXqbjPbzM 07ixrrRHg/9Bkv3oH3tvKEUDsDmwhM7yMYDBN3mTrJJybUjPatlWmvAfOTJ9FbSNnJva l3KQ== 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=XUiRC857KSutSWslTwBbL0QlxeKjzQ/hhKJwjejBjuU=; b=SSYZy3F9R1JCemWWDPrw0gTglCjBD2qawvtIFnB7e37uf03vOCZEDpDm2YAwcoi5LX 96NFy/Bq3RSPyudLoG+JsyjrpXQrRjyHuVgSwgUCHTYHvGvJSsCyy2cHz3nWh/gt9BG4 PPVyv5cr2nqVcVn8Oqy/2oTfAjInnWmPqgmf1e8XHWbMOP7JEsVCEjaJJ07xSCzaaJbX I0vkNq0E6kKAOI0C0OdGjImQq/kha44CDQTU+qeLKzvNctWzADQHARQNZHsnIvoO5rUI 5Pr3kipzPBdsh8sc03TicccWAYcxuHxon/XoX6zoGjamTJIKI1xgkPWPL7nObNhws811 t8QQ== 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 v2si2098828edd.536.2020.04.23.15.36.30; Thu, 23 Apr 2020 15:36:53 -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 S1727063AbgDWWgW (ORCPT + 99 others); Thu, 23 Apr 2020 18:36:22 -0400 Received: from mail105.syd.optusnet.com.au ([211.29.132.249]:46268 "EHLO mail105.syd.optusnet.com.au" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726057AbgDWWgW (ORCPT ); Thu, 23 Apr 2020 18:36:22 -0400 Received: from dread.disaster.area (pa49-180-0-232.pa.nsw.optusnet.com.au [49.180.0.232]) by mail105.syd.optusnet.com.au (Postfix) with ESMTPS id D11843A2EFA; Fri, 24 Apr 2020 08:36:18 +1000 (AEST) Received: from dave by dread.disaster.area with local (Exim 4.92.3) (envelope-from ) id 1jRkSA-0006mZ-CN; Fri, 24 Apr 2020 08:36:18 +1000 Date: Fri, 24 Apr 2020 08:36:18 +1000 From: Dave Chinner To: ira.weiny@intel.com Cc: linux-kernel@vger.kernel.org, linux-xfs@vger.kernel.org, "Darrick J. Wong" , Al Viro , Jan Kara , Dan Williams , Christoph Hellwig , "Theodore Y. Ts'o" , Jeff Moyer , linux-ext4@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-api@vger.kernel.org Subject: Re: [PATCH V10 07/11] fs/xfs: Create function xfs_inode_should_enable_dax() Message-ID: <20200423223618.GV27860@dread.disaster.area> References: <20200422212102.3757660-1-ira.weiny@intel.com> <20200422212102.3757660-8-ira.weiny@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200422212102.3757660-8-ira.weiny@intel.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-Optus-CM-Score: 0 X-Optus-CM-Analysis: v=2.3 cv=QIgWuTDL c=1 sm=1 tr=0 a=XYjVcjsg+1UI/cdbgX7I7g==:117 a=XYjVcjsg+1UI/cdbgX7I7g==:17 a=kj9zAlcOel0A:10 a=cl8xLZFz6L8A:10 a=QyXUC8HyAAAA:8 a=yPCof4ZbAAAA:8 a=20KFwNOVAAAA:8 a=7-415B0cAAAA:8 a=o7yEu5xeGUGkZ51Z9lIA:9 a=CjuIK1q_8ugA:10 a=biEYGPWJfzWAr4FL6Ov7:22 Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Wed, Apr 22, 2020 at 02:20:58PM -0700, ira.weiny@intel.com wrote: > From: Ira Weiny > > xfs_inode_supports_dax() should reflect if the inode can support DAX not > that it is enabled for DAX. > > Change the use of xfs_inode_supports_dax() to reflect only if the inode > and underlying storage support dax. > > Add a new function xfs_inode_should_enable_dax() which reflects if the > inode should be enabled for DAX. > > Reviewed-by: Darrick J. Wong > Signed-off-by: Ira Weiny Looks fine. Reviewed-by: Dave Chinner -- Dave Chinner david@fromorbit.com