vfs: remove get_xip_mem
[linux-drm-fsl-dcu.git] / mm / madvise.c
index 1077cbdc8b5207a6b407f3b4d97f4f5e99862065..d551475517bfd8867dca18ea23657216a0d2364a 100644 (file)
@@ -239,7 +239,7 @@ static long madvise_willneed(struct vm_area_struct *vma,
                return -EBADF;
 #endif
 
-       if (file->f_mapping->a_ops->get_xip_mem) {
+       if (IS_DAX(file_inode(file))) {
                /* no bad return value, but ignore advice */
                return 0;
        }