diff options
author | David Howells <dhowells@redhat.com> | 2021-06-17 14:09:21 +0200 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2023-12-28 10:45:22 +0100 |
commit | c38f4e96e605f17990e871214e6ea1496bc4e65f (patch) | |
tree | ef067dcae6e6748d547e3ef66615ca7554fee474 /fs/netfs/Makefile | |
parent | netfs: Dispatch write requests to process a writeback slice (diff) | |
download | linux-c38f4e96e605f17990e871214e6ea1496bc4e65f.tar.xz linux-c38f4e96e605f17990e871214e6ea1496bc4e65f.zip |
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
Diffstat (limited to 'fs/netfs/Makefile')
-rw-r--r-- | fs/netfs/Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/netfs/Makefile b/fs/netfs/Makefile index c69c6775b8ac..85d8333a1ed4 100644 --- a/fs/netfs/Makefile +++ b/fs/netfs/Makefile @@ -2,6 +2,7 @@ netfs-y := \ buffered_read.o \ + buffered_write.o \ io.o \ iterator.o \ locking.o \ |