]> git.baikalelectronics.ru Git - kernel.git/commit
NFS: Avoid duplicate uncached readdir calls on eof
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Wed, 19 Jan 2022 03:10:52 +0000 (22:10 -0500)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Wed, 2 Feb 2022 15:47:33 +0000 (10:47 -0500)
commit2d344479fe6994861cc36cadcc6ac256897789a2
tree7c9a296e49be8f754e853b702025a77f1e00a96a
parentf63c5a97ca0ecb1b9995aec12d1018c6b0484216
NFS: Avoid duplicate uncached readdir calls on eof

If we've reached the end of the directory, then cache that information
in the context so that we don't need to do an uncached readdir in order
to rediscover that fact.

Fixes: c695c9bdea18 ("NFS: Do uncached readdir when we're seeking a cookie in an empty page cache")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
fs/nfs/dir.c
include/linux/nfs_fs.h