mirror of
https://github.com/lkl/linux.git
synced 2025-12-19 16:13:19 +09:00
dax: remove the DAXDEV_F_SYNC flag
Remove the DAXDEV_F_SYNC flag and thus the flags argument to alloc_dax and just let the drivers call set_dax_synchronous directly. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Pankaj Gupta <pankaj.gupta@ionos.com> Reviewed-by: Dan Williams <dan.j.williams@intel.com> Link: https://lore.kernel.org/r/20211215084508.435401-4-hch@lst.de Signed-off-by: Dan Williams <dan.j.williams@intel.com>
This commit is contained in:
committed by
Dan Williams
parent
fd1d00ec92
commit
30c6828a17
@@ -6,9 +6,6 @@
|
||||
#include <linux/mm.h>
|
||||
#include <linux/radix-tree.h>
|
||||
|
||||
/* Flag for synchronous flush */
|
||||
#define DAXDEV_F_SYNC (1UL << 0)
|
||||
|
||||
typedef unsigned long dax_entry_t;
|
||||
|
||||
struct dax_device;
|
||||
@@ -42,8 +39,7 @@ struct dax_operations {
|
||||
};
|
||||
|
||||
#if IS_ENABLED(CONFIG_DAX)
|
||||
struct dax_device *alloc_dax(void *private, const struct dax_operations *ops,
|
||||
unsigned long flags);
|
||||
struct dax_device *alloc_dax(void *private, const struct dax_operations *ops);
|
||||
void put_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);
|
||||
@@ -64,7 +60,7 @@ static inline bool daxdev_mapping_supported(struct vm_area_struct *vma,
|
||||
}
|
||||
#else
|
||||
static inline struct dax_device *alloc_dax(void *private,
|
||||
const struct dax_operations *ops, unsigned long flags)
|
||||
const struct dax_operations *ops)
|
||||
{
|
||||
/*
|
||||
* Callers should check IS_ENABLED(CONFIG_DAX) to know if this
|
||||
|
||||
Reference in New Issue
Block a user