dax: unify ext2/4_{dax,}_file_operations
[firefly-linux-kernel-4.4.55.git] / fs / ext2 / file.c
index 866a3ce3f8643a6415cf02a6a74c240b6811d5b7..19cac93a65d3eb06e76e53c8283e8c63b795a10d 100644 (file)
@@ -109,24 +109,6 @@ const struct file_operations ext2_file_operations = {
        .splice_write   = iter_file_splice_write,
 };
 
-#ifdef CONFIG_FS_DAX
-const struct file_operations ext2_dax_file_operations = {
-       .llseek         = generic_file_llseek,
-       .read           = new_sync_read,
-       .write          = new_sync_write,
-       .read_iter      = generic_file_read_iter,
-       .write_iter     = generic_file_write_iter,
-       .unlocked_ioctl = ext2_ioctl,
-#ifdef CONFIG_COMPAT
-       .compat_ioctl   = ext2_compat_ioctl,
-#endif
-       .mmap           = ext2_file_mmap,
-       .open           = dquot_file_open,
-       .release        = ext2_release_file,
-       .fsync          = ext2_fsync,
-};
-#endif
-
 const struct inode_operations ext2_file_inode_operations = {
 #ifdef CONFIG_EXT2_FS_XATTR
        .setxattr       = generic_setxattr,