mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
pmem: add dax_operations support
Setup a dax_device to have the same lifetime as the pmem block device and add a ->direct_access() method that is equivalent to pmem_direct_access(). Once fs/dax.c has been converted to use dax_operations the old pmem_direct_access() will be removed. Signed-off-by: Dan Williams <[email protected]>
This commit is contained in:
parent
6568b08b77
commit
c1d6e828a3
6 changed files with 70 additions and 33 deletions
|
|
@ -13,13 +13,6 @@
|
|||
#ifndef __DAX_H__
|
||||
#define __DAX_H__
|
||||
struct dax_device;
|
||||
struct dax_operations;
|
||||
struct dax_device *alloc_dax(void *private, const char *host,
|
||||
const struct dax_operations *ops);
|
||||
void put_dax(struct dax_device *dax_dev);
|
||||
bool dax_alive(struct dax_device *dax_dev);
|
||||
void kill_dax(struct dax_device *dax_dev);
|
||||
struct dax_device *inode_dax(struct inode *inode);
|
||||
struct inode *dax_inode(struct dax_device *dax_dev);
|
||||
void *dax_get_private(struct dax_device *dax_dev);
|
||||
#endif /* __DAX_H__ */
|
||||
|
|
|
|||
Loading…
Reference in a new issue