NFS: Further optimisations for 'ls -l'
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Tue, 28 Sep 2021 18:33:44 +0000 (14:33 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Mon, 4 Oct 2021 00:49:07 +0000 (20:49 -0400)
commitff81dfb5d721fff87bd516c558847f6effb70031
tree02a2a6df1a54f8403d624215ca0639b96e1ea8e6
parent2929bc3329f4c7e4df400acca2b1844492650bfd
NFS: Further optimisations for 'ls -l'

If a user is doing 'ls -l', we have a heuristic in GETATTR that tells
the readdir code to try to use READDIRPLUS in order to refresh the inode
attributes. In certain cirumstances, we also try to invalidate the
remaining directory entries in order to ensure this refresh.

If there are multiple readers of the directory, we probably should avoid
invalidating the page cache, since the heuristic breaks down in that
situation anyway.

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Tested-by: Benjamin Coddington <bcodding@redhat.com>
Reviewed-by: Benjamin Coddington <bcodding@redhat.com>
fs/nfs/dir.c
include/linux/nfs_fs.h