While reviewing NFS client for another PR, noticed this omission in the

NFSv4 client READDIR logic.  This change matches the logic in the version
2 and 3 code.

Sponsored by:	Network Appliance, Incorporated
This commit is contained in:
Chuck Lever 2006-05-24 15:56:36 +00:00
parent 8f0e86eb29
commit 52bde90e30
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=158887

View File

@ -1924,7 +1924,7 @@ nfs4_readdir(struct vop_readdir_args *ap)
if (np->n_direofoffset > 0 && uio->uio_offset >= np->n_direofoffset &&
(np->n_flag & NMODIFIED) == 0) {
if (VOP_GETATTR(vp, &vattr, ap->a_cred, uio->uio_td) == 0 &&
np->n_mtime.tv_sec == vattr.va_mtime.tv_sec) {
!NFS_TIMESPEC_COMPARE(&np->n_mtime, &vattr.va_mtime)) {
nfsstats.direofcache_hits++;
return (0);
}