linux-next/fs/netfs
David Howells 7f84a7b989 netfs: Make netfs_read_folio() handle streaming-write pages
netfs_read_folio() needs to handle partially-valid pages that are marked
dirty, but not uptodate in the event that someone tries to read a page was
used to cache data by a streaming write.

In such a case, make netfs_read_folio() set up a bvec iterator that points
to the parts of the folio that need filling and to a sink page for the data
that should be discarded and use that instead of i_pages as the iterator to
be written to.

This requires netfs_rreq_unlock_folios() to convert the page into a normal
dirty uptodate page, getting rid of the partial write record and bumping
the group pointer over to folio->private.

Signed-off-by: David Howells <dhowells@redhat.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
cc: linux-cachefs@redhat.com
cc: linux-fsdevel@vger.kernel.org
cc: linux-mm@kvack.org
2023-12-28 09:45:22 +00:00
..
buffered_read.c netfs: Make netfs_read_folio() handle streaming-write pages 2023-12-28 09:45:22 +00:00
buffered_write.c netfs: Provide func to copy data to pagecache for buffered write 2023-12-28 09:45:22 +00:00
fscache_cache.c netfs, fscache: Move fs/fscache/* into fs/netfs/ 2023-12-24 11:36:00 +00:00
fscache_cookie.c netfs, fscache: Move fs/fscache/* into fs/netfs/ 2023-12-24 11:36:00 +00:00
fscache_internal.h netfs, fscache: Combine fscache with netfs 2023-12-24 15:08:46 +00:00
fscache_io.c netfs: Move pinning-for-writeback from fscache to netfs 2023-12-24 15:08:49 +00:00
fscache_main.c netfs, fscache: Move /proc/fs/fscache to /proc/fs/netfs and put in a symlink 2023-12-24 15:08:48 +00:00
fscache_proc.c netfs, fscache: Move /proc/fs/fscache to /proc/fs/netfs and put in a symlink 2023-12-24 15:08:48 +00:00
fscache_stats.c netfs, fscache: Move /proc/fs/fscache to /proc/fs/netfs and put in a symlink 2023-12-24 15:08:48 +00:00
fscache_volume.c netfs, fscache: Move fs/fscache/* into fs/netfs/ 2023-12-24 11:36:00 +00:00
internal.h netfs: Provide func to copy data to pagecache for buffered write 2023-12-28 09:45:22 +00:00
io.c netfs: Provide func to copy data to pagecache for buffered write 2023-12-28 09:45:22 +00:00
iterator.c netfs: Add func to calculate pagecount/size-limited span of an iterator 2023-12-28 09:45:18 +00:00
Kconfig netfs, fscache: Combine fscache with netfs 2023-12-24 15:08:46 +00:00
locking.c netfs: Implement unbuffered/DIO vs buffered I/O locking 2023-12-24 15:08:52 +00:00
main.c netfs: Extend the netfs_io_*request structs to handle writes 2023-12-28 09:45:19 +00:00
Makefile netfs: Provide func to copy data to pagecache for buffered write 2023-12-28 09:45:22 +00:00
misc.c netfs: Prep to use folio->private for write grouping and streaming write 2023-12-28 09:45:21 +00:00
objects.c netfs: Make netfs_put_request() handle a NULL pointer 2023-12-28 09:45:20 +00:00
output.c netfs: Dispatch write requests to process a writeback slice 2023-12-28 09:45:22 +00:00
stats.c netfs: Extend the netfs_io_*request structs to handle writes 2023-12-28 09:45:19 +00:00