Re: [PATCH v2 12/30] dax: remove block device dependencies

2019-05-16 Thread Vivek Goyal
On Wed, May 15, 2019 at 05:21:51PM -0700, Dan Williams wrote: [..] > It just seems to me that we should stop pretending that the > filesystem-dax facility requires block devices and try to move this > functionality to generically use a dax device across all interfaces. That sounds reasonable and

Re: [PATCH v2 12/30] dax: remove block device dependencies

2019-05-16 Thread Stefan Hajnoczi
On Wed, May 15, 2019 at 05:21:51PM -0700, Dan Williams wrote: > On Wed, May 15, 2019 at 12:28 PM Vivek Goyal wrote: > > > > From: Stefan Hajnoczi > > > > Although struct dax_device itself is not tied to a block device, some > > DAX code assumes there is a block device. Make block devices

Re: [PATCH v2 12/30] dax: remove block device dependencies

2019-05-15 Thread Dan Williams
On Wed, May 15, 2019 at 12:28 PM Vivek Goyal wrote: > > From: Stefan Hajnoczi > > Although struct dax_device itself is not tied to a block device, some > DAX code assumes there is a block device. Make block devices optional > by allowing bdev to be NULL in commonly used DAX APIs. > > When there

[PATCH v2 12/30] dax: remove block device dependencies

2019-05-15 Thread Vivek Goyal
From: Stefan Hajnoczi Although struct dax_device itself is not tied to a block device, some DAX code assumes there is a block device. Make block devices optional by allowing bdev to be NULL in commonly used DAX APIs. When there is no block device: * Skip the partition offset calculation in