Re: [dm-devel] [PATCH v5 2/9] dax: Introduce holder for dax_device

2021-07-21 Thread ruansy.f...@fujitsu.com
> -Original Message- > Subject: Re: [PATCH v5 2/9] dax: Introduce holder for dax_device > > On Mon, Jun 28, 2021 at 08:02:11AM +0800, Shiyang Ruan wrote: > > +int dax_holder_notify_failure(struct dax_device *dax_dev, loff_t offset, > > + size_t size, void *data) > >

Re: [dm-devel] [PATCH v5 2/9] dax: Introduce holder for dax_device

2021-07-19 Thread Christoph Hellwig
On Mon, Jun 28, 2021 at 08:02:11AM +0800, Shiyang Ruan wrote: > +int dax_holder_notify_failure(struct dax_device *dax_dev, loff_t offset, > + size_t size, void *data) > +{ > + int rc = -ENXIO; > + if (!dax_dev) > + return rc; > + > + if (dax_dev->ho

[dm-devel] [PATCH v5 2/9] dax: Introduce holder for dax_device

2021-06-28 Thread Shiyang Ruan
To easily track filesystem from a pmem device, we introduce a holder for dax_device structure, and also its operation. This holder is used to remember who is using this dax_device: - When it is the backend of a filesystem, the holder will be the superblock of this filesystem. - When this pmem