]> git.ipfire.org Git - thirdparty/linux.git/commit
netfs: Implement buffered write API
authorDavid Howells <dhowells@redhat.com>
Thu, 17 Jun 2021 12:09:21 +0000 (13:09 +0100)
committerDavid Howells <dhowells@redhat.com>
Thu, 28 Dec 2023 09:45:24 +0000 (09:45 +0000)
commit938e13a73b244278a3777f38fa915bd239b2efd2
treec1625777ab2962f8cbefcc993b2b9b3124bc1417
parent153a9961b551101cd38e94e26cd92fbfd198b19b
netfs: Implement buffered write API

Institute a netfs write helper, netfs_file_write_iter(), to be pointed at
by the network filesystem ->write_iter() call.  Make it handled buffered
writes by calling the previously defined netfs_perform_write() to copy the
source data into the pagecache.

Signed-off-by: David Howells <dhowells@redhat.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
cc: linux-cachefs@redhat.com
cc: linux-fsdevel@vger.kernel.org
cc: linux-mm@kvack.org
fs/netfs/buffered_write.c
include/linux/netfs.h