Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

dax: export dax_dev_get()

famfs needs to look up a dax_device by dev_t when resolving fmap
entries that reference character dax devices.

Reviewed-by: Dave Jiang <dave.jiang@intel.com>
Reviewed-by: Jonathan Cameron <jonathan.cameron@huawei.com>
Signed-off-by: John Groves <john@groves.net>
Link: https://patch.msgid.link/0100019d311daab5-bb212f0b-4e05-4668-bf53-d76fab56be68-000000@email.amazonses.com
Signed-off-by: Ira Weiny <ira.weiny@intel.com>

authored by

John Groves and committed by
Ira Weiny
2ae624d5 eec38f5d

+3 -1
+2 -1
drivers/dax/super.c
··· 521 521 return 0; 522 522 } 523 523 524 - static struct dax_device *dax_dev_get(dev_t devt) 524 + struct dax_device *dax_dev_get(dev_t devt) 525 525 { 526 526 struct dax_device *dax_dev; 527 527 struct inode *inode; ··· 544 544 545 545 return dax_dev; 546 546 } 547 + EXPORT_SYMBOL_GPL(dax_dev_get); 547 548 548 549 struct dax_device *alloc_dax(void *private, const struct dax_operations *ops) 549 550 {
+1
include/linux/dax.h
··· 54 54 void *dax_holder(struct dax_device *dax_dev); 55 55 void put_dax(struct dax_device *dax_dev); 56 56 void kill_dax(struct dax_device *dax_dev); 57 + struct dax_device *dax_dev_get(dev_t devt); 57 58 void dax_write_cache(struct dax_device *dax_dev, bool wc); 58 59 bool dax_write_cache_enabled(struct dax_device *dax_dev); 59 60 bool dax_synchronous(struct dax_device *dax_dev);