netfs, 9p: Implement helpers for new write code
authorDavid Howells <dhowells@redhat.com>
Mon, 18 Mar 2024 20:29:53 +0000 (20:29 +0000)
committerDavid Howells <dhowells@redhat.com>
Wed, 1 May 2024 17:07:37 +0000 (18:07 +0100)
commit5fb70e7275a61dd404f684370e1add7fe0ebe9c5
tree186c38a93da2105a4e730f3082241c14b82f6da1
parented22e1dbf831bbc747a726b7c1f924c18c1ad350
netfs, 9p: Implement helpers for new write code

Implement the helpers for the new write code in 9p.  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: Eric Van Hensbergen <ericvh@kernel.org>
cc: Latchesar Ionkov <lucho@ionkov.net>
cc: Dominique Martinet <asmadeus@codewreck.org>
cc: Christian Schoenebeck <linux_oss@crudebyte.com>
cc: v9fs@lists.linux.dev
cc: netfs@lists.linux.dev
cc: linux-fsdevel@vger.kernel.org
fs/9p/vfs_addr.c
include/net/9p/client.h
net/9p/Kconfig
net/9p/client.c