linux-stable/fs/netfs
David Howells 2de1604173 netfs: Change ->init_request() to return an error code
Change the request initialisation function to return an error code so that
the network filesystem can return a failure (ENOMEM, for example).

This will also allow ceph to abort a ->readahead() op if the server refuses
to give it a cap allowing local caching from within the netfslib framework
(errors aren't passed back through ->readahead(), so returning, say,
-ENOBUFS will cause the op to be aborted).

Signed-off-by: David Howells <dhowells@redhat.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
cc: linux-cachefs@redhat.com

Link: https://lore.kernel.org/r/164678212401.1200972.16537041523832944934.stgit@warthog.procyon.org.uk/ # v2
Link: https://lore.kernel.org/r/164692905398.2099075.5238033621684646524.stgit@warthog.procyon.org.uk/ # v3
2022-03-18 09:24:00 +00:00
..
internal.h netfs: Refactor arguments for netfs_alloc_read_request 2022-03-18 09:24:00 +00:00
Kconfig netfs: Make CONFIG_NETFS_SUPPORT auto-selected rather than manual 2021-05-25 13:48:04 +01:00
Makefile netfs: Split netfs_io_* object handling out 2022-03-18 09:24:00 +00:00
objects.c netfs: Change ->init_request() to return an error code 2022-03-18 09:24:00 +00:00
read_helper.c netfs: Change ->init_request() to return an error code 2022-03-18 09:24:00 +00:00
stats.c netfs: Add write_begin helper 2021-04-23 10:14:32 +01:00