aboutsummaryrefslogtreecommitdiffstats
path: root/mm/filemap.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2014-04-04 14:20:57 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2014-05-06 17:39:44 -0400
commit6abd232274fd652e4a57f486d14e52ffee6f72e9 (patch)
tree714623d46866c2b3a1b0d2454222412a7ceb371a /mm/filemap.c
parentb42b15fdad3ebb790250041d1517acebb9bd56d9 (diff)
bury generic_file_aio_{read,write}
no callers left Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'mm/filemap.c')
-rw-r--r--mm/filemap.c43
1 files changed, 8 insertions, 35 deletions
diff --git a/mm/filemap.c b/mm/filemap.c
index 7dcdb9db710d..2f724e3cdf24 100644
--- a/mm/filemap.c
+++ b/mm/filemap.c
@@ -1663,6 +1663,14 @@ out:
1663 return written ? written : error; 1663 return written ? written : error;
1664} 1664}
1665 1665
1666/**
1667 * generic_file_read_iter - generic filesystem read routine
1668 * @iocb: kernel I/O control block
1669 * @iter: destination for the data read
1670 *
1671 * This is the "read_iter()" routine for all filesystems
1672 * that can use the page cache directly.
1673 */
1666ssize_t 1674ssize_t
1667generic_file_read_iter(struct kiocb *iocb, struct iov_iter *iter) 1675generic_file_read_iter(struct kiocb *iocb, struct iov_iter *iter)
1668{ 1676{
@@ -1713,28 +1721,6 @@ out:
1713} 1721}
1714EXPORT_SYMBOL(generic_file_read_iter); 1722EXPORT_SYMBOL(generic_file_read_iter);
1715 1723
1716/**
1717 * generic_file_aio_read - generic filesystem read routine
1718 * @iocb: kernel I/O control block
1719 * @iov: io vector request
1720 * @nr_segs: number of segments in the iovec
1721 * @pos: current file position
1722 *
1723 * This is the "read()" routine for all filesystems
1724 * that can use the page cache directly.
1725 */
1726ssize_t
1727generic_file_aio_read(struct kiocb *iocb, const struct iovec *iov,
1728 unsigned long nr_segs, loff_t pos)
1729{
1730 size_t count = iov_length(iov, nr_segs);
1731 struct iov_iter i;
1732
1733 iov_iter_init(&i, READ, iov, nr_segs, count);
1734 return generic_file_read_iter(iocb, &i);
1735}
1736EXPORT_SYMBOL(generic_file_aio_read);
1737
1738#ifdef CONFIG_MMU 1724#ifdef CONFIG_MMU
1739/** 1725/**
1740 * page_cache_read - adds requested page to the page cache if not already there 1726 * page_cache_read - adds requested page to the page cache if not already there
@@ -2675,19 +2661,6 @@ ssize_t generic_file_write_iter(struct kiocb *iocb, struct iov_iter *from)
2675} 2661}
2676EXPORT_SYMBOL(generic_file_write_iter); 2662EXPORT_SYMBOL(generic_file_write_iter);
2677 2663
2678ssize_t generic_file_aio_write(struct kiocb *iocb, const struct iovec *iov,
2679 unsigned long nr_segs, loff_t pos)
2680{
2681 size_t count = iov_length(iov, nr_segs);
2682 struct iov_iter from;
2683
2684 BUG_ON(iocb->ki_pos != pos);
2685
2686 iov_iter_init(&from, WRITE, iov, nr_segs, count);
2687 return generic_file_write_iter(iocb, &from);
2688}
2689EXPORT_SYMBOL(generic_file_aio_write);
2690
2691/** 2664/**
2692 * try_to_release_page() - release old fs-specific metadata on a page 2665 * try_to_release_page() - release old fs-specific metadata on a page
2693 * 2666 *