summaryrefslogtreecommitdiffstats
path: root/fs/afs/file.c
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2024-03-18 20:25:53 +0000
committerDavid Howells <dhowells@redhat.com>2024-05-01 18:07:36 +0100
commited22e1dbf831bbc747a726b7c1f924c18c1ad350 (patch)
tree2696fd2b019c2b163f7d99c5fdec203e272b98d0 /fs/afs/file.c
parent4824e5917f907c163d001c753c050bc547a72b71 (diff)
downloadlinux-ed22e1dbf831bbc747a726b7c1f924c18c1ad350.tar.gz
linux-ed22e1dbf831bbc747a726b7c1f924c18c1ad350.tar.bz2
linux-ed22e1dbf831bbc747a726b7c1f924c18c1ad350.zip
netfs, afs: Implement helpers for new write code
Implement the helpers for the new write code in afs. There's now an optional ->prepare_write() that allows the filesystem to set the parameters for the next write, such as maximum size and maximum segment count, and an ->issue_write() that is called to initiate an (asynchronous) write operation. Signed-off-by: David Howells <dhowells@redhat.com> Reviewed-by: Jeff Layton <jlayton@kernel.org> cc: Marc Dionne <marc.dionne@auristor.com> cc: linux-afs@lists.infradead.org cc: netfs@lists.linux.dev cc: linux-fsdevel@vger.kernel.org
Diffstat (limited to 'fs/afs/file.c')
-rw-r--r--fs/afs/file.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/afs/file.c b/fs/afs/file.c
index dfd8f60f5e1f..db9ebae84fa2 100644
--- a/fs/afs/file.c
+++ b/fs/afs/file.c
@@ -400,6 +400,9 @@ const struct netfs_request_ops afs_req_ops = {
.update_i_size = afs_update_i_size,
.invalidate_cache = afs_netfs_invalidate_cache,
.create_write_requests = afs_create_write_requests,
+ .begin_writeback = afs_begin_writeback,
+ .prepare_write = afs_prepare_write,
+ .issue_write = afs_issue_write,
};
static void afs_add_open_mmap(struct afs_vnode *vnode)