]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - fs/nfs/dir.c
NFS: Optimisations for monotonically increasing readdir cookies
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Wed, 4 Nov 2020 13:32:19 +0000 (08:32 -0500)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Wed, 2 Dec 2020 19:05:52 +0000 (14:05 -0500)
commit762567b7c798afd08c22811ecfc66885a2b50f91
treef1f3b751cf25b4dda591f2a89144b804f900e61a
parentb593c09f83a2732a0f0298c8f3468236a83cdd9f
NFS: Optimisations for monotonically increasing readdir cookies

If the server is handing out monotonically increasing readdir cookie values,
then we can optimise away searches through pages that contain cookies that
lie outside our search range.

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Reviewed-by: Benjamin Coddington <bcodding@redhat.com>
Tested-by: Benjamin Coddington <bcodding@redhat.com>
Tested-by: Dave Wysochanski <dwysocha@redhat.com>
fs/nfs/dir.c