diff options
Diffstat (limited to 'fs/ext2/file.c')
-rw-r--r-- | fs/ext2/file.c | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/fs/ext2/file.c b/fs/ext2/file.c index ef04fdb57dbf..3a0a6c6406d0 100644 --- a/fs/ext2/file.c +++ b/fs/ext2/file.c | |||
@@ -39,6 +39,7 @@ static int ext2_dax_mkwrite(struct vm_area_struct *vma, struct vm_fault *vmf) | |||
39 | static const struct vm_operations_struct ext2_dax_vm_ops = { | 39 | static const struct vm_operations_struct ext2_dax_vm_ops = { |
40 | .fault = ext2_dax_fault, | 40 | .fault = ext2_dax_fault, |
41 | .page_mkwrite = ext2_dax_mkwrite, | 41 | .page_mkwrite = ext2_dax_mkwrite, |
42 | .pfn_mkwrite = dax_pfn_mkwrite, | ||
42 | }; | 43 | }; |
43 | 44 | ||
44 | static int ext2_file_mmap(struct file *file, struct vm_area_struct *vma) | 45 | static int ext2_file_mmap(struct file *file, struct vm_area_struct *vma) |
@@ -106,22 +107,6 @@ const struct file_operations ext2_file_operations = { | |||
106 | .splice_write = iter_file_splice_write, | 107 | .splice_write = iter_file_splice_write, |
107 | }; | 108 | }; |
108 | 109 | ||
109 | #ifdef CONFIG_FS_DAX | ||
110 | const struct file_operations ext2_dax_file_operations = { | ||
111 | .llseek = generic_file_llseek, | ||
112 | .read_iter = generic_file_read_iter, | ||
113 | .write_iter = generic_file_write_iter, | ||
114 | .unlocked_ioctl = ext2_ioctl, | ||
115 | #ifdef CONFIG_COMPAT | ||
116 | .compat_ioctl = ext2_compat_ioctl, | ||
117 | #endif | ||
118 | .mmap = ext2_file_mmap, | ||
119 | .open = dquot_file_open, | ||
120 | .release = ext2_release_file, | ||
121 | .fsync = ext2_fsync, | ||
122 | }; | ||
123 | #endif | ||
124 | |||
125 | const struct inode_operations ext2_file_inode_operations = { | 110 | const struct inode_operations ext2_file_inode_operations = { |
126 | #ifdef CONFIG_EXT2_FS_XATTR | 111 | #ifdef CONFIG_EXT2_FS_XATTR |
127 | .setxattr = generic_setxattr, | 112 | .setxattr = generic_setxattr, |