From: Christoph Hellwig <hch@lst.de>
To: axboe@kernel.dk
Cc: dhowells@redhat.com, linux-block@vger.kernel.org,
linux-fsdevel@vger.kernel.org
Subject: [PATCH 1/3] iov_iter: remove iov_iter_get_pages
Date: Mon, 3 Apr 2023 16:25:41 +0200 [thread overview]
Message-ID: <20230403142543.1913749-2-hch@lst.de> (raw)
In-Reply-To: <20230403142543.1913749-1-hch@lst.de>
All previous users have been converted to the FOLL_PIN based interfaces.
Signed-off-by: Christoph Hellwig <hch@lst.de>
---
include/linux/uio.h | 3 ---
lib/iov_iter.c | 14 +++-----------
2 files changed, 3 insertions(+), 14 deletions(-)
diff --git a/include/linux/uio.h b/include/linux/uio.h
index 74598426edb405..37f93a613f3dc7 100644
--- a/include/linux/uio.h
+++ b/include/linux/uio.h
@@ -238,9 +238,6 @@ void iov_iter_bvec(struct iov_iter *i, unsigned int direction, const struct bio_
void iov_iter_discard(struct iov_iter *i, unsigned int direction, size_t count);
void iov_iter_xarray(struct iov_iter *i, unsigned int direction, struct xarray *xarray,
loff_t start, size_t count);
-ssize_t iov_iter_get_pages(struct iov_iter *i, struct page **pages,
- size_t maxsize, unsigned maxpages, size_t *start,
- iov_iter_extraction_t extraction_flags);
ssize_t iov_iter_get_pages2(struct iov_iter *i, struct page **pages,
size_t maxsize, unsigned maxpages, size_t *start);
ssize_t iov_iter_get_pages_alloc(struct iov_iter *i,
diff --git a/lib/iov_iter.c b/lib/iov_iter.c
index fad95e4cf372a2..07872e30ee82e3 100644
--- a/lib/iov_iter.c
+++ b/lib/iov_iter.c
@@ -1081,23 +1081,15 @@ static ssize_t __iov_iter_get_pages_alloc(struct iov_iter *i,
return -EFAULT;
}
-ssize_t iov_iter_get_pages(struct iov_iter *i,
- struct page **pages, size_t maxsize, unsigned maxpages,
- size_t *start, iov_iter_extraction_t extraction_flags)
+ssize_t iov_iter_get_pages2(struct iov_iter *i, struct page **pages,
+ size_t maxsize, unsigned maxpages, size_t *start)
{
if (!maxpages)
return 0;
BUG_ON(!pages);
return __iov_iter_get_pages_alloc(i, &pages, maxsize, maxpages,
- start, extraction_flags);
-}
-EXPORT_SYMBOL_GPL(iov_iter_get_pages);
-
-ssize_t iov_iter_get_pages2(struct iov_iter *i, struct page **pages,
- size_t maxsize, unsigned maxpages, size_t *start)
-{
- return iov_iter_get_pages(i, pages, maxsize, maxpages, start, 0);
+ start, 0);
}
EXPORT_SYMBOL(iov_iter_get_pages2);
--
2.39.2
next prev parent reply other threads:[~2023-04-03 14:26 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-03 14:25 two little cleanups for the for-6.4/splice branch Christoph Hellwig
2023-04-03 14:25 ` Christoph Hellwig [this message]
2023-04-05 13:37 ` [PATCH 1/3] iov_iter: remove iov_iter_get_pages Jens Axboe
2023-04-03 14:25 ` [PATCH 2/3] iov_iter: remove iov_iter_get_pages_alloc Christoph Hellwig
2023-04-12 21:45 ` David Howells
2023-04-03 14:25 ` [PATCH 3/3] iov_iter: remove the extraction_flags argument to __iov_iter_get_pages_alloc Christoph Hellwig
2023-04-05 13:34 ` two little cleanups for the for-6.4/splice branch Jens Axboe
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230403142543.1913749-2-hch@lst.de \
--to=hch@lst.de \
--cc=axboe@kernel.dk \
--cc=dhowells@redhat.com \
--cc=linux-block@vger.kernel.org \
--cc=linux-fsdevel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox