mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 06:01:57 +00:00
iov_iter: Provide copy_folio_from_iter()
Provide a copy_folio_from_iter() wrapper. Signed-off-by: David Howells <dhowells@redhat.com> cc: Alexander Viro <viro@zeniv.linux.org.uk> cc: Christian Brauner <christian@brauner.io> cc: Matthew Wilcox <willy@infradead.org> cc: netfs@lists.linux.dev cc: linux-fsdevel@vger.kernel.org cc: linux-mm@kvack.org Link: https://lore.kernel.org/r/20240814203850.2240469-14-dhowells@redhat.com/ # v2 Signed-off-by: Christian Brauner <brauner@kernel.org>
This commit is contained in:
parent
db0aa2e956
commit
197a3de607
@ -189,6 +189,12 @@ static inline size_t copy_folio_to_iter(struct folio *folio, size_t offset,
|
||||
return copy_page_to_iter(&folio->page, offset, bytes, i);
|
||||
}
|
||||
|
||||
static inline size_t copy_folio_from_iter(struct folio *folio, size_t offset,
|
||||
size_t bytes, struct iov_iter *i)
|
||||
{
|
||||
return copy_page_from_iter(&folio->page, offset, bytes, i);
|
||||
}
|
||||
|
||||
static inline size_t copy_folio_from_iter_atomic(struct folio *folio,
|
||||
size_t offset, size_t bytes, struct iov_iter *i)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user