linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] folio_copy_tail
@ 2023-03-03  6:43 Matthew Wilcox (Oracle)
  2023-03-03  6:43 ` [PATCH 1/2] filemap: Add folio_copy_tail() Matthew Wilcox (Oracle)
  2023-03-03  6:43 ` [PATCH 2/2] iomap: Use folio_copy_tail() Matthew Wilcox (Oracle)
  0 siblings, 2 replies; 4+ messages in thread
From: Matthew Wilcox (Oracle) @ 2023-03-03  6:43 UTC (permalink / raw)
  To: Christoph Hellwig, Darrick J . Wong
  Cc: Matthew Wilcox (Oracle), linux-xfs, linux-fsdevel,
	Andreas Gruenbacher, Gao Xiang

I'm trying to make it easy & efficient for a filesystem to read its file
tails into a folio.  iomap's implementation was pretty good, but had
some limitations (eg tails couldn't cross a page boundary).

This should be an all-singing, all-dancing implementation which copies
the correct part of the buffer into the correct part of the folio and
zeroes the remainder of the folio.  It should work with highmem, but
the calculations are a bit tricky and I may have got something wrong.

For some reason I'm currently running an XFS test against it, even
though I know XFS doesn't support inline data.  If there's good feedback,
I'll take a look at converting udf_adinicb_readpage() and other similar
functions.

Matthew Wilcox (Oracle) (2):
  filemap: Add folio_copy_tail()
  iomap: Use folio_copy_tail()

 fs/iomap/buffered-io.c  | 23 +++++------------
 include/linux/pagemap.h |  1 +
 mm/filemap.c            | 56 +++++++++++++++++++++++++++++++++++++++++
 3 files changed, 63 insertions(+), 17 deletions(-)

-- 
2.39.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-03-03 12:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-03  6:43 [PATCH 0/2] folio_copy_tail Matthew Wilcox (Oracle)
2023-03-03  6:43 ` [PATCH 1/2] filemap: Add folio_copy_tail() Matthew Wilcox (Oracle)
2023-03-03 12:05   ` kernel test robot
2023-03-03  6:43 ` [PATCH 2/2] iomap: Use folio_copy_tail() Matthew Wilcox (Oracle)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).