netfs: Add support for caching single monolithic objects such as AFS dirs
authorDavid Howells <dhowells@redhat.com>
Mon, 16 Dec 2024 20:41:09 +0000 (20:41 +0000)
committerChristian Brauner <brauner@kernel.org>
Fri, 20 Dec 2024 21:34:06 +0000 (22:34 +0100)
commit49866ce7ea8d41a3dc198f519cc9caa2d6be1891
treec2642c8c52ce186f2f686338c531527653ce0bcb
parente61bfaad8fd86ac84eac633e0bbaac47a5dfd358
netfs: Add support for caching single monolithic objects such as AFS dirs

Add support for caching the content of a file that contains a single
monolithic object that must be read/written with a single I/O operation,
such as an AFS directory.

Signed-off-by: David Howells <dhowells@redhat.com>
Link: https://lore.kernel.org/r/20241216204124.3752367-20-dhowells@redhat.com
cc: Jeff Layton <jlayton@kernel.org>
cc: Marc Dionne <marc.dionne@auristor.com>
cc: netfs@lists.linux.dev
cc: linux-afs@lists.infradead.org
cc: linux-fsdevel@vger.kernel.org
Signed-off-by: Christian Brauner <brauner@kernel.org>
12 files changed:
fs/netfs/Makefile
fs/netfs/buffered_read.c
fs/netfs/internal.h
fs/netfs/main.c
fs/netfs/objects.c
fs/netfs/read_collect.c
fs/netfs/read_single.c [new file with mode: 0644]
fs/netfs/stats.c
fs/netfs/write_collect.c
fs/netfs/write_issue.c
include/linux/netfs.h
include/trace/events/netfs.h