]> www.infradead.org Git - users/jedix/linux-maple.git/commit
afs: Eliminate afs_read
authorDavid Howells <dhowells@redhat.com>
Mon, 16 Dec 2024 20:41:13 +0000 (20:41 +0000)
committerChristian Brauner <brauner@kernel.org>
Fri, 20 Dec 2024 21:34:07 +0000 (22:34 +0100)
commitf28fc2010d622a2f1f3fe8fcd2ce2376ecf3430f
tree1142b665e3d736dec412d9802408815fc52e04b1
parenteae9e78951bb02a7b94a9adef6e981413d13c564
afs: Eliminate afs_read

Now that directory and symlink reads go through netfslib, the afs_read
struct is mostly redundant with almost all data duplicated in the
netfs_io_request and netfs_io_subrequest structs that are also available
any time we're doing a fetch.

Eliminate afs_read by moving the one field we still need there to the
afs_call struct (we may be given a different amount of data than what we
asked for and have to track what remains of that) and using the
netfs_io_subrequest directly instead.

Signed-off-by: David Howells <dhowells@redhat.com>
Link: https://lore.kernel.org/r/20241216204124.3752367-24-dhowells@redhat.com
cc: Marc Dionne <marc.dionne@auristor.com>
cc: linux-afs@lists.infradead.org
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/afs/file.c
fs/afs/fsclient.c
fs/afs/inode.c
fs/afs/internal.h
fs/afs/yfsclient.c
fs/netfs/main.c