For zfs vnodes, use the standard inode number based hash algorithm.

Reviewed and tested by:	peter
Sponsored by:	The FreeBSD Foundation
MFC after:	5 days
This commit is contained in:
Konstantin Belousov 2013-01-14 05:45:33 +00:00
parent 603f963e56
commit 614b9f9130

View File

@ -2025,6 +2025,8 @@ zfs_vget(vfs_t *vfsp, ino_t ino, int flags, vnode_t **vpp)
err = zfs_vnode_lock(*vpp, flags);
if (err != 0)
*vpp = NULL;
else
(*vpp)->v_hash = ino;
return (err);
}