diff options
author | cel <cel@FreeBSD.org> | 2006-05-24 15:56:36 +0000 |
---|---|---|
committer | cel <cel@FreeBSD.org> | 2006-05-24 15:56:36 +0000 |
commit | a2c318ed63a0b8fd497b0941abe9cbd34dd5312e (patch) | |
tree | b3692e9cbdacb596ced979224b5be7bad2ae01f0 /sys/nfs4client | |
parent | 8ebe6e7a45bb38a79c0cc88d1d039d1965276320 (diff) | |
download | FreeBSD-src-a2c318ed63a0b8fd497b0941abe9cbd34dd5312e.zip FreeBSD-src-a2c318ed63a0b8fd497b0941abe9cbd34dd5312e.tar.gz |
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
Diffstat (limited to 'sys/nfs4client')
-rw-r--r-- | sys/nfs4client/nfs4_vnops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/nfs4client/nfs4_vnops.c b/sys/nfs4client/nfs4_vnops.c index 1abbeb9..6ab5d2e 100644 --- a/sys/nfs4client/nfs4_vnops.c +++ b/sys/nfs4client/nfs4_vnops.c @@ -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); } |