Skip to content

Commit

Permalink
iov_iter: remove iov_iter_iovec()
Browse files Browse the repository at this point in the history
No more users are left of this function.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
  • Loading branch information
Jens Axboe committed Mar 30, 2023
1 parent 95e49cf commit 6eb203e
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions include/linux/uio.h
Original file line number Diff line number Diff line change
Expand Up @@ -148,15 +148,6 @@ static inline size_t iov_length(const struct iovec *iov, unsigned long nr_segs)
return ret;
}

static inline struct iovec iov_iter_iovec(const struct iov_iter *iter)
{
return (struct iovec) {
.iov_base = iter_iov(iter)->iov_base + iter->iov_offset,
.iov_len = min(iter->count,
iter_iov(iter)->iov_len - iter->iov_offset),
};
}

size_t copy_page_from_iter_atomic(struct page *page, unsigned offset,
size_t bytes, struct iov_iter *i);
void iov_iter_advance(struct iov_iter *i, size_t bytes);
Expand Down

0 comments on commit 6eb203e

Please sign in to comment.