We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fcc912b commit 4a5bf01Copy full SHA for 4a5bf01
drivers/dax/device.c
@@ -439,10 +439,20 @@ static int dev_dax_split(struct vm_area_struct *vma, unsigned long addr)
439
return 0;
440
}
441
442
+static unsigned long dev_dax_pagesize(struct vm_area_struct *vma)
443
+{
444
+ struct file *filp = vma->vm_file;
445
+ struct dev_dax *dev_dax = filp->private_data;
446
+ struct dax_region *dax_region = dev_dax->region;
447
+
448
+ return dax_region->align;
449
+}
450
451
static const struct vm_operations_struct dax_vm_ops = {
452
.fault = dev_dax_fault,
453
.huge_fault = dev_dax_huge_fault,
454
.split = dev_dax_split,
455
+ .pagesize = dev_dax_pagesize,
456
};
457
458
static int dax_mmap(struct file *filp, struct vm_area_struct *vma)
0 commit comments