]> git.baikalelectronics.ru Git - kernel.git/commit
afs: Prospectively look up extra files when doing a single lookup
authorDavid Howells <dhowells@redhat.com>
Mon, 9 Apr 2018 20:12:31 +0000 (21:12 +0100)
committerDavid Howells <dhowells@redhat.com>
Mon, 9 Apr 2018 20:12:31 +0000 (21:12 +0100)
commit6769c742a24485071bc7e4053a9d669d34bc9815
tree4a782bb849b5eefc8ef797bf4c68515e84d35ed4
parent2ee1112f36ae9a8b1e54962b8d208ba415effa84
afs: Prospectively look up extra files when doing a single lookup

When afs_lookup() is called, prospectively look up the next 50 uncached
fids also from that same directory and cache the results, rather than just
looking up the one file requested.

This allows us to use the FS.InlineBulkStatus RPC op to increase efficiency
by fetching up to 50 file statuses at a time.

Signed-off-by: David Howells <dhowells@redhat.com>
fs/afs/afs.h
fs/afs/afs_fs.h
fs/afs/callback.c
fs/afs/cmservice.c
fs/afs/dir.c
fs/afs/fsclient.c
fs/afs/internal.h
include/trace/events/afs.h