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:
parent
603f963e56
commit
614b9f9130
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user