summaryrefslogtreecommitdiffstats
path: root/include/linux/fs.h
diff options
context:
space:
mode:
authorKent Overstreet <kmo@daterainc.com>2013-11-27 16:29:46 -0800
committerAl Viro <viro@zeniv.linux.org.uk>2014-04-01 23:19:21 -0400
commit9223687863ffa63fa655f52ef64148ee08dee4d1 (patch)
tree314ffae2789995acbd311cf0832a766035021b26 /include/linux/fs.h
parent8142c184b8f16d213eb8ba06ccb6222259a51cfc (diff)
downloadop-kernel-dev-9223687863ffa63fa655f52ef64148ee08dee4d1.zip
op-kernel-dev-9223687863ffa63fa655f52ef64148ee08dee4d1.tar.gz
iov_iter: Move iov_iter to uio.h
Signed-off-by: Kent Overstreet <kmo@daterainc.com>
Diffstat (limited to 'include/linux/fs.h')
-rw-r--r--include/linux/fs.h32
1 files changed, 0 insertions, 32 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h
index ddfff2e..2261ac8 100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -295,38 +295,6 @@ struct page;
struct address_space;
struct writeback_control;
-struct iov_iter {
- const struct iovec *iov;
- unsigned long nr_segs;
- size_t iov_offset;
- size_t count;
-};
-
-size_t iov_iter_copy_from_user_atomic(struct page *page,
- struct iov_iter *i, unsigned long offset, size_t bytes);
-size_t iov_iter_copy_from_user(struct page *page,
- struct iov_iter *i, unsigned long offset, size_t bytes);
-void iov_iter_advance(struct iov_iter *i, size_t bytes);
-int iov_iter_fault_in_readable(struct iov_iter *i, size_t bytes);
-size_t iov_iter_single_seg_count(const struct iov_iter *i);
-
-static inline void iov_iter_init(struct iov_iter *i,
- const struct iovec *iov, unsigned long nr_segs,
- size_t count, size_t written)
-{
- i->iov = iov;
- i->nr_segs = nr_segs;
- i->iov_offset = 0;
- i->count = count + written;
-
- iov_iter_advance(i, written);
-}
-
-static inline size_t iov_iter_count(struct iov_iter *i)
-{
- return i->count;
-}
-
/*
* "descriptor" for what we're up to with a read.
* This allows us to use the same read code yet
OpenPOWER on IntegriCloud