Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752774AbdFRIhG (ORCPT ); Sun, 18 Jun 2017 04:37:06 -0400 Received: from verein.lst.de ([213.95.11.211]:51403 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751086AbdFRIhE (ORCPT ); Sun, 18 Jun 2017 04:37:04 -0400 Date: Sun, 18 Jun 2017 10:37:02 +0200 From: Christoph Hellwig To: Dan Williams Cc: linux-nvdimm@lists.01.org, Mike Snitzer , Toshi Kani , x86@kernel.org, linux-kernel@vger.kernel.org, dm-devel@redhat.com, viro@zeniv.linux.org.uk, linux-fsdevel@vger.kernel.org, hch@lst.de Subject: Re: [PATCH v3 02/14] dm: add ->copy_from_iter() dax operation support Message-ID: <20170618083702.GB26456@lst.de> References: <149703982465.20620.14881139332926778446.stgit@dwillia2-desk3.amr.corp.intel.com> <149703983692.20620.3787021839815275819.stgit@dwillia2-desk3.amr.corp.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <149703983692.20620.3787021839815275819.stgit@dwillia2-desk3.amr.corp.intel.com> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 465 Lines: 14 > +size_t dax_copy_from_iter(struct dax_device *dax_dev, pgoff_t pgoff, void *addr, > + size_t bytes, struct iov_iter *i) > +{ > + if (!dax_alive(dax_dev)) > + return 0; > + > + if (!dax_dev->ops->copy_from_iter) > + return copy_from_iter(addr, bytes, i); > + return dax_dev->ops->copy_from_iter(dax_dev, pgoff, addr, bytes, i); > +} > +EXPORT_SYMBOL_GPL(dax_copy_from_iter); Can you remove the fallbacks after this series so that we have a clean abstraction?