]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit88274b27691b5b0c38c49d286b640c9d3b036446
tree02a2a6df1a54f8403d624215ca0639b96e1ea8e6
parentcd95b620d8fbef4ea5822da95296b586a5c43fc1
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