netfs: Provide tools to create a buffer in an xarray
authorDavid Howells <dhowells@redhat.com>
Fri, 22 Sep 2023 12:25:22 +0000 (13:25 +0100)
committerDavid Howells <dhowells@redhat.com>
Thu, 28 Dec 2023 09:45:18 +0000 (09:45 +0000)
commit7d828a06634799aba0fa392913c7fe2953eb64a6
tree5fa6cc75c11007bf13f9178b0602dad3480d9948
parent21d706d5cf570917594b21edee81893bdce09ab8
netfs: Provide tools to create a buffer in an xarray

Provide tools to create a buffer in an xarray, with a function to add new
folios with a mark.  This will be used to create bounce buffer and can be
used more easily to create a list of folios the span of which would require
more than a page's worth of bio_vec structs.

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/internal.h
fs/netfs/misc.c
include/linux/netfs.h