netfs, afs: Implement helpers for new write code
authorDavid Howells <dhowells@redhat.com>
Mon, 18 Mar 2024 20:25:53 +0000 (20:25 +0000)
committerDavid Howells <dhowells@redhat.com>
Wed, 1 May 2024 17:07:36 +0000 (18:07 +0100)
commited22e1dbf831bbc747a726b7c1f924c18c1ad350
tree2696fd2b019c2b163f7d99c5fdec203e272b98d0
parent4824e5917f907c163d001c753c050bc547a72b71
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
fs/afs/file.c
fs/afs/internal.h
fs/afs/write.c