aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext2/file.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ext2/file.c')
-rw-r--r--fs/ext2/file.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/fs/ext2/file.c b/fs/ext2/file.c
index 23e2c7ccec1d..2dba473c524a 100644
--- a/fs/ext2/file.c
+++ b/fs/ext2/file.c
@@ -41,17 +41,18 @@ static int ext2_release_file (struct inode * inode, struct file * filp)
41 */ 41 */
42const struct file_operations ext2_file_operations = { 42const struct file_operations ext2_file_operations = {
43 .llseek = generic_file_llseek, 43 .llseek = generic_file_llseek,
44 .read = generic_file_read, 44 .read = do_sync_read,
45 .write = generic_file_write, 45 .write = do_sync_write,
46 .aio_read = generic_file_aio_read, 46 .aio_read = generic_file_aio_read,
47 .aio_write = generic_file_aio_write, 47 .aio_write = generic_file_aio_write,
48 .ioctl = ext2_ioctl, 48 .ioctl = ext2_ioctl,
49#ifdef CONFIG_COMPAT
50 .compat_ioctl = ext2_compat_ioctl,
51#endif
49 .mmap = generic_file_mmap, 52 .mmap = generic_file_mmap,
50 .open = generic_file_open, 53 .open = generic_file_open,
51 .release = ext2_release_file, 54 .release = ext2_release_file,
52 .fsync = ext2_sync_file, 55 .fsync = ext2_sync_file,
53 .readv = generic_file_readv,
54 .writev = generic_file_writev,
55 .sendfile = generic_file_sendfile, 56 .sendfile = generic_file_sendfile,
56 .splice_read = generic_file_splice_read, 57 .splice_read = generic_file_splice_read,
57 .splice_write = generic_file_splice_write, 58 .splice_write = generic_file_splice_write,
@@ -63,6 +64,9 @@ const struct file_operations ext2_xip_file_operations = {
63 .read = xip_file_read, 64 .read = xip_file_read,
64 .write = xip_file_write, 65 .write = xip_file_write,
65 .ioctl = ext2_ioctl, 66 .ioctl = ext2_ioctl,
67#ifdef CONFIG_COMPAT
68 .compat_ioctl = ext2_compat_ioctl,
69#endif
66 .mmap = xip_file_mmap, 70 .mmap = xip_file_mmap,
67 .open = generic_file_open, 71 .open = generic_file_open,
68 .release = ext2_release_file, 72 .release = ext2_release_file,