Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c0bd14af authored by Al Viro's avatar Al Viro
Browse files

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: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 5ae98f15
Loading
Loading
Loading
Loading
+0 −2
Original line number Original line Diff line number Diff line
@@ -67,8 +67,6 @@ int compat_printk(const char *fmt, ...)
	return ret;
	return ret;
}
}


#include "read_write.h"

/*
/*
 * Not all architectures have sys_utime, so implement this in terms
 * Not all architectures have sys_utime, so implement this in terms
 * of sys_utimes.
 * of sys_utimes.
+4 −1
Original line number Original line Diff line number Diff line
@@ -16,12 +16,15 @@
#include <linux/pagemap.h>
#include <linux/pagemap.h>
#include <linux/splice.h>
#include <linux/splice.h>
#include <linux/compat.h>
#include <linux/compat.h>
#include "read_write.h"
#include "internal.h"
#include "internal.h"


#include <asm/uaccess.h>
#include <asm/uaccess.h>
#include <asm/unistd.h>
#include <asm/unistd.h>


typedef ssize_t (*io_fn_t)(struct file *, char __user *, size_t, loff_t *);
typedef ssize_t (*iov_fn_t)(struct kiocb *, const struct iovec *,
		unsigned long, loff_t);

const struct file_operations generic_ro_fops = {
const struct file_operations generic_ro_fops = {
	.llseek		= generic_file_llseek,
	.llseek		= generic_file_llseek,
	.read		= do_sync_read,
	.read		= do_sync_read,

fs/read_write.h

deleted100644 → 0
+0 −9
Original line number Original line Diff line number Diff line
/*
 * This file is only for sharing some helpers from read_write.c with compat.c.
 * Don't use anywhere else.
 */


typedef ssize_t (*io_fn_t)(struct file *, char __user *, size_t, loff_t *);
typedef ssize_t (*iov_fn_t)(struct kiocb *, const struct iovec *,
		unsigned long, loff_t);