diff options
Diffstat (limited to 'fs/read_write.c')
-rw-r--r-- | fs/read_write.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/fs/read_write.c b/fs/read_write.c index 605dbbcb1973..90ba3b350e50 100644 --- a/fs/read_write.c +++ b/fs/read_write.c | |||
@@ -16,12 +16,15 @@ | |||
16 | #include <linux/pagemap.h> | 16 | #include <linux/pagemap.h> |
17 | #include <linux/splice.h> | 17 | #include <linux/splice.h> |
18 | #include <linux/compat.h> | 18 | #include <linux/compat.h> |
19 | #include "read_write.h" | ||
20 | #include "internal.h" | 19 | #include "internal.h" |
21 | 20 | ||
22 | #include <asm/uaccess.h> | 21 | #include <asm/uaccess.h> |
23 | #include <asm/unistd.h> | 22 | #include <asm/unistd.h> |
24 | 23 | ||
24 | typedef ssize_t (*io_fn_t)(struct file *, char __user *, size_t, loff_t *); | ||
25 | typedef ssize_t (*iov_fn_t)(struct kiocb *, const struct iovec *, | ||
26 | unsigned long, loff_t); | ||
27 | |||
25 | const struct file_operations generic_ro_fops = { | 28 | const struct file_operations generic_ro_fops = { |
26 | .llseek = generic_file_llseek, | 29 | .llseek = generic_file_llseek, |
27 | .read = do_sync_read, | 30 | .read = do_sync_read, |