linux/fs/netfs
David Howells c38f4e96e6 netfs: Provide func to copy data to pagecache for buffered write
Provide a netfs write helper, netfs_perform_write() to buffer data to be
written in the pagecache and mark the modified folios dirty.

It will perform "streaming writes" for folios that aren't currently
resident, if possible, storing data in partially modified folios that are
marked dirty, but not uptodate.  It will also tag pages as belonging to
fs-specific write groups if so directed by the filesystem.

This is derived from generic_perform_write(), but doesn't use
->write_begin() and ->write_end(), having that logic rolled in instead.

Signed-off-by: David Howells <dhowells@redhat.com>
cc: 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: Provide func to copy data to pagecache for buffered write 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