Commit af69f51e authored by Dan Williams's avatar Dan Williams

dax: rename fops from dax_dev_ to dax_

Shorten the prefix of the file operations to distinguish them from
operations on the struct device associated with the dax_dev.
Signed-off-by: default avatarDan Williams <dan.j.williams@intel.com>
parent 043a9255
...@@ -347,7 +347,7 @@ static const struct vm_operations_struct dax_dev_vm_ops = { ...@@ -347,7 +347,7 @@ static const struct vm_operations_struct dax_dev_vm_ops = {
.close = dax_dev_vm_close, .close = dax_dev_vm_close,
}; };
static int dax_dev_mmap(struct file *filp, struct vm_area_struct *vma) static int dax_mmap(struct file *filp, struct vm_area_struct *vma)
{ {
struct dax_dev *dax_dev = filp->private_data; struct dax_dev *dax_dev = filp->private_data;
int rc; int rc;
...@@ -365,7 +365,7 @@ static int dax_dev_mmap(struct file *filp, struct vm_area_struct *vma) ...@@ -365,7 +365,7 @@ static int dax_dev_mmap(struct file *filp, struct vm_area_struct *vma)
} }
/* return an unmapped area aligned to the dax region specified alignment */ /* return an unmapped area aligned to the dax region specified alignment */
static unsigned long dax_dev_get_unmapped_area(struct file *filp, static unsigned long dax_get_unmapped_area(struct file *filp,
unsigned long addr, unsigned long len, unsigned long pgoff, unsigned long addr, unsigned long len, unsigned long pgoff,
unsigned long flags) unsigned long flags)
{ {
...@@ -411,7 +411,7 @@ static struct device *dax_dev_find(dev_t dev_t) ...@@ -411,7 +411,7 @@ static struct device *dax_dev_find(dev_t dev_t)
return class_find_device(dax_class, NULL, &dev_t, __match_devt); return class_find_device(dax_class, NULL, &dev_t, __match_devt);
} }
static int dax_dev_open(struct inode *inode, struct file *filp) static int dax_open(struct inode *inode, struct file *filp)
{ {
struct dax_dev *dax_dev = NULL; struct dax_dev *dax_dev = NULL;
struct device *dev; struct device *dev;
...@@ -437,7 +437,7 @@ static int dax_dev_open(struct inode *inode, struct file *filp) ...@@ -437,7 +437,7 @@ static int dax_dev_open(struct inode *inode, struct file *filp)
return 0; return 0;
} }
static int dax_dev_release(struct inode *inode, struct file *filp) static int dax_release(struct inode *inode, struct file *filp)
{ {
struct dax_dev *dax_dev = filp->private_data; struct dax_dev *dax_dev = filp->private_data;
struct device *dev = dax_dev->dev; struct device *dev = dax_dev->dev;
...@@ -452,10 +452,10 @@ static int dax_dev_release(struct inode *inode, struct file *filp) ...@@ -452,10 +452,10 @@ static int dax_dev_release(struct inode *inode, struct file *filp)
static const struct file_operations dax_fops = { static const struct file_operations dax_fops = {
.llseek = noop_llseek, .llseek = noop_llseek,
.owner = THIS_MODULE, .owner = THIS_MODULE,
.open = dax_dev_open, .open = dax_open,
.release = dax_dev_release, .release = dax_release,
.get_unmapped_area = dax_dev_get_unmapped_area, .get_unmapped_area = dax_get_unmapped_area,
.mmap = dax_dev_mmap, .mmap = dax_mmap,
}; };
static void unregister_dax_dev(void *_dev) static void unregister_dax_dev(void *_dev)
......
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