Skip to content

Commit fd1d00e

Browse files
Christoph Hellwigdjbw
authored andcommitted
dax: simplify dax_synchronous and set_dax_synchronous
Remove the pointless wrappers. Signed-off-by: Christoph Hellwig <[email protected]> Reviewed-by: Pankaj Gupta <[email protected]> Reviewed-by: Dan Williams <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Dan Williams <[email protected]>
1 parent e17f7a0 commit fd1d00e

File tree

2 files changed

+6
-14
lines changed

2 files changed

+6
-14
lines changed

drivers/dax/super.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -208,17 +208,17 @@ bool dax_write_cache_enabled(struct dax_device *dax_dev)
208208
}
209209
EXPORT_SYMBOL_GPL(dax_write_cache_enabled);
210210

211-
bool __dax_synchronous(struct dax_device *dax_dev)
211+
bool dax_synchronous(struct dax_device *dax_dev)
212212
{
213213
return test_bit(DAXDEV_SYNC, &dax_dev->flags);
214214
}
215-
EXPORT_SYMBOL_GPL(__dax_synchronous);
215+
EXPORT_SYMBOL_GPL(dax_synchronous);
216216

217-
void __set_dax_synchronous(struct dax_device *dax_dev)
217+
void set_dax_synchronous(struct dax_device *dax_dev)
218218
{
219219
set_bit(DAXDEV_SYNC, &dax_dev->flags);
220220
}
221-
EXPORT_SYMBOL_GPL(__set_dax_synchronous);
221+
EXPORT_SYMBOL_GPL(set_dax_synchronous);
222222

223223
bool dax_alive(struct dax_device *dax_dev)
224224
{

include/linux/dax.h

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -48,16 +48,8 @@ void put_dax(struct dax_device *dax_dev);
4848
void kill_dax(struct dax_device *dax_dev);
4949
void dax_write_cache(struct dax_device *dax_dev, bool wc);
5050
bool dax_write_cache_enabled(struct dax_device *dax_dev);
51-
bool __dax_synchronous(struct dax_device *dax_dev);
52-
static inline bool dax_synchronous(struct dax_device *dax_dev)
53-
{
54-
return __dax_synchronous(dax_dev);
55-
}
56-
void __set_dax_synchronous(struct dax_device *dax_dev);
57-
static inline void set_dax_synchronous(struct dax_device *dax_dev)
58-
{
59-
__set_dax_synchronous(dax_dev);
60-
}
51+
bool dax_synchronous(struct dax_device *dax_dev);
52+
void set_dax_synchronous(struct dax_device *dax_dev);
6153
/*
6254
* Check if given mapping is supported by the file / underlying device.
6355
*/

0 commit comments

Comments
 (0)