Commit fd1d00ec authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Dan Williams

dax: simplify dax_synchronous and set_dax_synchronous

Remove the pointless wrappers.
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Reviewed-by: default avatarPankaj Gupta <pankaj.gupta@ionos.com>
Reviewed-by: default avatarDan Williams <dan.j.williams@intel.com>
Link: https://lore.kernel.org/r/20211215084508.435401-3-hch@lst.deSigned-off-by: default avatarDan Williams <dan.j.williams@intel.com>
parent e17f7a0b
...@@ -208,17 +208,17 @@ bool dax_write_cache_enabled(struct dax_device *dax_dev) ...@@ -208,17 +208,17 @@ bool dax_write_cache_enabled(struct dax_device *dax_dev)
} }
EXPORT_SYMBOL_GPL(dax_write_cache_enabled); EXPORT_SYMBOL_GPL(dax_write_cache_enabled);
bool __dax_synchronous(struct dax_device *dax_dev) bool dax_synchronous(struct dax_device *dax_dev)
{ {
return test_bit(DAXDEV_SYNC, &dax_dev->flags); return test_bit(DAXDEV_SYNC, &dax_dev->flags);
} }
EXPORT_SYMBOL_GPL(__dax_synchronous); EXPORT_SYMBOL_GPL(dax_synchronous);
void __set_dax_synchronous(struct dax_device *dax_dev) void set_dax_synchronous(struct dax_device *dax_dev)
{ {
set_bit(DAXDEV_SYNC, &dax_dev->flags); set_bit(DAXDEV_SYNC, &dax_dev->flags);
} }
EXPORT_SYMBOL_GPL(__set_dax_synchronous); EXPORT_SYMBOL_GPL(set_dax_synchronous);
bool dax_alive(struct dax_device *dax_dev) bool dax_alive(struct dax_device *dax_dev)
{ {
......
...@@ -48,16 +48,8 @@ void put_dax(struct dax_device *dax_dev); ...@@ -48,16 +48,8 @@ void put_dax(struct dax_device *dax_dev);
void kill_dax(struct dax_device *dax_dev); void kill_dax(struct dax_device *dax_dev);
void dax_write_cache(struct dax_device *dax_dev, bool wc); void dax_write_cache(struct dax_device *dax_dev, bool wc);
bool dax_write_cache_enabled(struct dax_device *dax_dev); bool dax_write_cache_enabled(struct dax_device *dax_dev);
bool __dax_synchronous(struct dax_device *dax_dev); bool dax_synchronous(struct dax_device *dax_dev);
static inline bool dax_synchronous(struct dax_device *dax_dev) void set_dax_synchronous(struct dax_device *dax_dev);
{
return __dax_synchronous(dax_dev);
}
void __set_dax_synchronous(struct dax_device *dax_dev);
static inline void set_dax_synchronous(struct dax_device *dax_dev)
{
__set_dax_synchronous(dax_dev);
}
/* /*
* Check if given mapping is supported by the file / underlying device. * Check if given mapping is supported by the file / underlying device.
*/ */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment