Skip to content

Commit f05a384

Browse files
committed
fs: Constify vma argument to vma_is_dax
The function is used by upcoming vma_is_special_huge() with which we want to use a const vma argument. Since for vma_is_dax() the vma argument is only dereferenced for reading, constify it. Cc: Andrew Morton <[email protected]> Cc: Michal Hocko <[email protected]> Cc: "Matthew Wilcox (Oracle)" <[email protected]> Cc: "Kirill A. Shutemov" <[email protected]> Cc: Ralph Campbell <[email protected]> Cc: "Jérôme Glisse" <[email protected]> Cc: "Christian König" <[email protected]> Cc: Dan Williams <[email protected]> Signed-off-by: Thomas Hellstrom (VMware) <[email protected]> Reviewed-by: Roland Scheidegger <[email protected]> Acked-by: Christian König <[email protected]>
1 parent cb7adfd commit f05a384

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/linux/fs.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3391,7 +3391,7 @@ static inline bool io_is_direct(struct file *filp)
33913391
return (filp->f_flags & O_DIRECT) || IS_DAX(filp->f_mapping->host);
33923392
}
33933393

3394-
static inline bool vma_is_dax(struct vm_area_struct *vma)
3394+
static inline bool vma_is_dax(const struct vm_area_struct *vma)
33953395
{
33963396
return vma->vm_file && IS_DAX(vma->vm_file->f_mapping->host);
33973397
}

0 commit comments

Comments
 (0)