summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2014-04-03 03:32:25 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2014-05-06 17:39:37 -0400
commita8f3550cd228b6edc5d17fce1a9af8cc7004f185 (patch)
tree45c336178fff2cba85d445d6973a159776297669
parent3dae8750c368f8ac11c3c8c2a28f56dcee865c01 (diff)
downloadop-kernel-dev-a8f3550cd228b6edc5d17fce1a9af8cc7004f185.zip
op-kernel-dev-a8f3550cd228b6edc5d17fce1a9af8cc7004f185.tar.gz
bury __generic_file_aio_write()
all users converted to __generic_file_write_iter() now Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
-rw-r--r--include/linux/fs.h1
-rw-r--r--mm/filemap.c11
2 files changed, 0 insertions, 12 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h
index 1b9b6c5..99817c9 100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -2413,7 +2413,6 @@ extern int generic_file_remap_pages(struct vm_area_struct *, unsigned long addr,
int generic_write_checks(struct file *file, loff_t *pos, size_t *count, int isblk);
extern ssize_t generic_file_aio_read(struct kiocb *, const struct iovec *, unsigned long, loff_t);
extern ssize_t generic_file_read_iter(struct kiocb *, struct iov_iter *);
-extern ssize_t __generic_file_aio_write(struct kiocb *, const struct iovec *, unsigned long);
extern ssize_t __generic_file_write_iter(struct kiocb *, struct iov_iter *);
extern ssize_t generic_file_aio_write(struct kiocb *, const struct iovec *, unsigned long, loff_t);
extern ssize_t generic_file_write_iter(struct kiocb *, struct iov_iter *);
diff --git a/mm/filemap.c b/mm/filemap.c
index d2d9eee..7dcdb9d 100644
--- a/mm/filemap.c
+++ b/mm/filemap.c
@@ -2645,17 +2645,6 @@ out:
}
EXPORT_SYMBOL(__generic_file_write_iter);
-ssize_t __generic_file_aio_write(struct kiocb *iocb, const struct iovec *iov,
- unsigned long nr_segs)
-{
- size_t count = iov_length(iov, nr_segs);
- struct iov_iter from;
-
- iov_iter_init(&from, WRITE, iov, nr_segs, count);
- return __generic_file_write_iter(iocb, &from);
-}
-EXPORT_SYMBOL(__generic_file_aio_write);
-
/**
* generic_file_write_iter - write data to a file
* @iocb: IO state structure
OpenPOWER on IntegriCloud