Fix bug in r318997: remove the line which overrides vn_fsid()

calculation.

Noted by:	jhb
Reviewed by:	rmacklem
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Konstantin Belousov 2017-05-30 21:20:54 +00:00
parent 4650b8ae52
commit a8e7f543af
1 changed files with 1 additions and 2 deletions

View File

@ -491,8 +491,7 @@ nfscl_loadattrcache(struct vnode **vpp, struct nfsvattr *nap, void *nvaper,
* in the mounted subtree.
*/
vn_fsid(vp, vap);
vap->va_fsid = np->n_vattr.na_filesid[0];
if (vap->va_fsid == np->n_vattr.na_filesid[0])
if ((uint32_t)vap->va_fsid == np->n_vattr.na_filesid[0])
vap->va_fsid = hash32_buf(
np->n_vattr.na_filesid, 2 * sizeof(uint64_t), 0);
} else