netfs, cachefiles: Implement helpers for new write code
authorDavid Howells <dhowells@redhat.com>
Mon, 18 Mar 2024 20:31:13 +0000 (20:31 +0000)
committerDavid Howells <dhowells@redhat.com>
Wed, 1 May 2024 17:07:37 +0000 (18:07 +0100)
commit64e64e6c18c6bc7767ea6f2762c87c9ac981f2d1
treebea28fe6cc3e5d348aeda83e3a743513a44ae38b
parent5fb70e7275a61dd404f684370e1add7fe0ebe9c5
netfs, cachefiles: Implement helpers for new write code

Implement the helpers for the new write code in cachefiles.  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: netfs@lists.linux.dev
cc: linux-erofs@lists.ozlabs.org
cc: linux-fsdevel@vger.kernel.org
fs/cachefiles/io.c