Messages in this thread | | | Date | Mon, 26 Aug 2019 04:53:16 -0700 | From | Christoph Hellwig <> | Subject | Re: [PATCH 02/19] dax: Pass dax_dev to dax_writeback_mapping_range() |
| |
On Wed, Aug 21, 2019 at 01:57:03PM -0400, Vivek Goyal wrote: > Right now dax_writeback_mapping_range() is passed a bdev and dax_dev > is searched from that bdev name. > > virtio-fs does not have a bdev. So pass in dax_dev also to > dax_writeback_mapping_range(). If dax_dev is passed in, bdev is not > used otherwise dax_dev is searched using bdev.
Please just pass in only the dax_device and get rid of the block device. The callers should have one at hand easily, e.g. for XFS just call xfs_find_daxdev_for_inode instead of xfs_find_bdev_for_inode.
| |