aboutsummaryrefslogtreecommitdiffstats
path: root/fs/dax.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/dax.c')
-rw-r--r--fs/dax.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/dax.c b/fs/dax.c
index e9cf8b4cd234..99b5b4458a78 100644
--- a/fs/dax.c
+++ b/fs/dax.c
@@ -1079,7 +1079,7 @@ dax_iomap_actor(struct inode *inode, loff_t pos, loff_t length, void *data,
1079 */ 1079 */
1080ssize_t 1080ssize_t
1081dax_iomap_rw(struct kiocb *iocb, struct iov_iter *iter, 1081dax_iomap_rw(struct kiocb *iocb, struct iov_iter *iter,
1082 struct iomap_ops *ops) 1082 const struct iomap_ops *ops)
1083{ 1083{
1084 struct address_space *mapping = iocb->ki_filp->f_mapping; 1084 struct address_space *mapping = iocb->ki_filp->f_mapping;
1085 struct inode *inode = mapping->host; 1085 struct inode *inode = mapping->host;
@@ -1127,7 +1127,7 @@ static int dax_fault_return(int error)
1127 * necessary locking for the page fault to proceed successfully. 1127 * necessary locking for the page fault to proceed successfully.
1128 */ 1128 */
1129int dax_iomap_fault(struct vm_area_struct *vma, struct vm_fault *vmf, 1129int dax_iomap_fault(struct vm_area_struct *vma, struct vm_fault *vmf,
1130 struct iomap_ops *ops) 1130 const struct iomap_ops *ops)
1131{ 1131{
1132 struct address_space *mapping = vma->vm_file->f_mapping; 1132 struct address_space *mapping = vma->vm_file->f_mapping;
1133 struct inode *inode = mapping->host; 1133 struct inode *inode = mapping->host;
@@ -1326,7 +1326,7 @@ static int dax_pmd_load_hole(struct vm_area_struct *vma, pmd_t *pmd,
1326} 1326}
1327 1327
1328int dax_iomap_pmd_fault(struct vm_area_struct *vma, unsigned long address, 1328int dax_iomap_pmd_fault(struct vm_area_struct *vma, unsigned long address,
1329 pmd_t *pmd, unsigned int flags, struct iomap_ops *ops) 1329 pmd_t *pmd, unsigned int flags, const struct iomap_ops *ops)
1330{ 1330{
1331 struct address_space *mapping = vma->vm_file->f_mapping; 1331 struct address_space *mapping = vma->vm_file->f_mapping;
1332 unsigned long pmd_addr = address & PMD_MASK; 1332 unsigned long pmd_addr = address & PMD_MASK;