OSDN Git Service

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)
commit5cf9dd55a0ec26428f2824aadd16bfa305a5b603
tree4a782bb849b5eefc8ef797bf4c68515e84d35ed4
parent17814aef57fc0b80ac2a4a7a639db358b75cb6b9
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