netfs: Allow the netfs to make the io (sub)request alloc larger
authorDavid Howells <dhowells@redhat.com>
Wed, 9 Mar 2022 11:01:12 +0000 (11:01 +0000)
committerDavid Howells <dhowells@redhat.com>
Sun, 24 Dec 2023 15:08:50 +0000 (15:08 +0000)
commitcc3cb0a18da46a51d9fc173155576ba1d068e536
treec730be5f687db46708a3c470eb11648bed7e13f6
parent87b57a048964abfd5f3d8b79bc55687327f5a380
netfs: Allow the netfs to make the io (sub)request alloc larger

Allow the network filesystem to specify extra space to be allocated on the
end of the io (sub)request.  This allows cifs, for example, to use this
space rather than allocating its own cifs_readdata struct.

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/objects.c
include/linux/netfs.h