From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Fri, 29 Jan 2016 17:45:56 -0500 From: Matthew Wilcox To: Dan Williams Cc: linux-block@vger.kernel.org, linux-nvdimm@lists.01.org, Dave Chinner , linux-kernel@vger.kernel.org, Christoph Hellwig , axboe@fb.com, Jeff Moyer , Jan Kara , linux-fsdevel@vger.kernel.org, Andrew Morton , Ross Zwisler Subject: Re: [PATCH 2/2] block: use DAX for partition table reads Message-ID: <20160129224556.GX2948@linux.intel.com> References: <20160129151835.18752.9423.stgit@dwillia2-desk3.amr.corp.intel.com> <20160129151846.18752.48460.stgit@dwillia2-desk3.amr.corp.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160129151846.18752.48460.stgit@dwillia2-desk3.amr.corp.intel.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: On Fri, Jan 29, 2016 at 07:18:46AM -0800, Dan Williams wrote: > diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h > index 29189aeace19..b1452c04f1a9 100644 > --- a/include/linux/blkdev.h > +++ b/include/linux/blkdev.h > @@ -1633,6 +1633,16 @@ struct blk_dax_ctl { > pfn_t pfn; > }; > > +#ifdef CONFIG_FS_DAX > +struct page *read_dax_sector(struct block_device *bdev, sector_t n); > +#else > +static inline struct page *read_dax_sector(struct block_device *bdev, > + sector_t n) > +{ > + return ERR_PTR(-ENXIO); > +} > +#endif > + Can you move this to include/linux/dax.h? I'd like to keep it that all functions in dax.c have a prototype in dax.h. With that change, Reviewed-by: Matthew Wilcox