diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2013-05-04 15:00:54 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2013-05-04 15:00:54 -0400 |
commit | c0bd14af51a470895448f88edd1315c4fa0b0d27 (patch) | |
tree | b13af29d9c556f90e373bc3a7c266469d043694d | |
parent | 5ae98f1589e076e4b314fc54ae2beac58842ddc2 (diff) |
kill fs/read_write.h
fs/compat.c doesn't need it anymore, so let's just move the remaining
contents (two typedefs) into fs/read_write.c
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
-rw-r--r-- | fs/compat.c | 2 | ||||
-rw-r--r-- | fs/read_write.c | 5 | ||||
-rw-r--r-- | fs/read_write.h | 9 |
3 files changed, 4 insertions, 12 deletions
diff --git a/fs/compat.c b/fs/compat.c index d0560c93973d..93f7d021b716 100644 --- a/fs/compat.c +++ b/fs/compat.c | |||
@@ -67,8 +67,6 @@ int compat_printk(const char *fmt, ...) | |||
67 | return ret; | 67 | return ret; |
68 | } | 68 | } |
69 | 69 | ||
70 | #include "read_write.h" | ||
71 | |||
72 | /* | 70 | /* |
73 | * Not all architectures have sys_utime, so implement this in terms | 71 | * Not all architectures have sys_utime, so implement this in terms |
74 | * of sys_utimes. | 72 | * of sys_utimes. |
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, |
diff --git a/fs/read_write.h b/fs/read_write.h deleted file mode 100644 index 0ec530d9305b..000000000000 --- a/fs/read_write.h +++ /dev/null | |||
@@ -1,9 +0,0 @@ | |||
1 | /* | ||
2 | * This file is only for sharing some helpers from read_write.c with compat.c. | ||
3 | * Don't use anywhere else. | ||
4 | */ | ||
5 | |||
6 | |||
7 | typedef ssize_t (*io_fn_t)(struct file *, char __user *, size_t, loff_t *); | ||
8 | typedef ssize_t (*iov_fn_t)(struct kiocb *, const struct iovec *, | ||
9 | unsigned long, loff_t); | ||