From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from bombadil.infradead.org ([198.137.202.9]:42978 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751830AbcJCQjr (ORCPT ); Mon, 3 Oct 2016 12:39:47 -0400 Date: Mon, 3 Oct 2016 09:39:46 -0700 From: Christoph Hellwig To: Jan Kara Cc: Christoph Hellwig , linux-fsdevel@vger.kernel.org, linux-nvdimm@ml01.01.org, Dan Williams , Ross Zwisler Subject: Re: [PATCH 4/6] xfs: Set BH_New for allocated DAX blocks in __xfs_get_blocks() Message-ID: <20161003163946.GA19832@infradead.org> References: <1474994615-29553-1-git-send-email-jack@suse.cz> <1474994615-29553-5-git-send-email-jack@suse.cz> <20160927170118.GA15908@infradead.org> <20160927171707.GA30327@quack2.suse.cz> <20160928021350.GA11309@infradead.org> <20161003144246.GA14183@quack2.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20161003144246.GA14183@quack2.suse.cz> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Mon, Oct 03, 2016 at 04:42:46PM +0200, Jan Kara wrote: > Ah, you are right. After reading the code again this patch is not needed > anymore because xfs_file_iomap_begin() returns IOMAP_F_NEW whenever we > allocated block regardless whether it was zeroed-out or not. But if I get it > right, all the IS_DAX checks in __xfs_get_blocks() can be dropped now, cannot > they? Right now the code is required to keep the pmd_fault handler (which is always disabled though) compiling. Once that one is gone the DAX code in __xfs_get_blocks can be removed. In fact Ross sent a patch to do just that as part of his PMD fault rework.