Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754307AbcK1TPT (ORCPT ); Mon, 28 Nov 2016 14:15:19 -0500 Received: from mga02.intel.com ([134.134.136.20]:23024 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750971AbcK1TPO (ORCPT ); Mon, 28 Nov 2016 14:15:14 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.31,564,1473145200"; d="scan'208";a="36583080" Date: Mon, 28 Nov 2016 12:15:04 -0700 From: Ross Zwisler To: Jan Kara Cc: Ross Zwisler , linux-kernel@vger.kernel.org, Alexander Viro , Andrew Morton , Christoph Hellwig , Dan Williams , Dave Chinner , Ingo Molnar , Matthew Wilcox , Steven Rostedt , linux-ext4@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linux-nvdimm@ml01.01.org Subject: Re: [PATCH 1/6] dax: fix build breakage with ext4, dax and !iomap Message-ID: <20161128191504.GB6637@linux.intel.com> Mail-Followup-To: Ross Zwisler , Jan Kara , linux-kernel@vger.kernel.org, Alexander Viro , Andrew Morton , Christoph Hellwig , Dan Williams , Dave Chinner , Ingo Molnar , Matthew Wilcox , Steven Rostedt , linux-ext4@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linux-nvdimm@lists.01.org References: <1479926662-21718-1-git-send-email-ross.zwisler@linux.intel.com> <1479926662-21718-2-git-send-email-ross.zwisler@linux.intel.com> <20161124090239.GA24138@quack2.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20161124090239.GA24138@quack2.suse.cz> User-Agent: Mutt/1.7.1 (2016-10-04) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1917 Lines: 42 On Thu, Nov 24, 2016 at 10:02:39AM +0100, Jan Kara wrote: > On Wed 23-11-16 11:44:17, Ross Zwisler wrote: > > With the current Kconfig setup it is possible to have the following: > > > > CONFIG_EXT4_FS=y > > CONFIG_FS_DAX=y > > CONFIG_FS_IOMAP=n # this is in fs/Kconfig & isn't user accessible > > > > With this config we get build failures in ext4_dax_fault() because the > > iomap functions in fs/dax.c are missing: > > > > fs/built-in.o: In function `ext4_dax_fault': > > file.c:(.text+0x7f3ac): undefined reference to `dax_iomap_fault' > > file.c:(.text+0x7f404): undefined reference to `dax_iomap_fault' > > fs/built-in.o: In function `ext4_file_read_iter': > > file.c:(.text+0x7fc54): undefined reference to `dax_iomap_rw' > > fs/built-in.o: In function `ext4_file_write_iter': > > file.c:(.text+0x7fe9a): undefined reference to `dax_iomap_rw' > > file.c:(.text+0x7feed): undefined reference to `dax_iomap_rw' > > fs/built-in.o: In function `ext4_block_zero_page_range': > > inode.c:(.text+0x85c0d): undefined reference to `iomap_zero_range' > > > > Now that the struct buffer_head based DAX fault paths and I/O path have > > been removed we really depend on iomap support being present for DAX. Make > > this explicit by selecting FS_IOMAP if we compile in DAX support. > > > > Signed-off-by: Ross Zwisler > > I've sent the same patch to Ted yesterday and he will probably queue it on > top of ext4 iomap patches. If it doesn't happen for some reason, feel free > to add: > > Reviewed-by: Jan Kara Cool, looks like Ted has pulled in your patch. I think we still eventually want this patch because it cleans up our handling of FS_IOMAP. With your patch we select it separately in both ext4 & ext2 based on whether we include DAX, and we still have #ifdefs in fs/dax.c for FS_IOMAP. I'll pull your most recent patch into my baseline & rework this patch.