svn commit: r245664 - stable/9/sys/cddl/contrib/opensolaris/uts/common/fs/zfs

Konstantin Belousov kib at FreeBSD.org
Sat Jan 19 06:37:13 UTC 2013


Author: kib
Date: Sat Jan 19 06:37:12 2013
New Revision: 245664
URL: http://svnweb.freebsd.org/changeset/base/245664

Log:
  MFC r245409:
  For zfs vnodes, use the standard inode number based hash algorithm.

Modified:
  stable/9/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vfsops.c
Directory Properties:
  stable/9/sys/   (props changed)
  stable/9/sys/cddl/contrib/opensolaris/   (props changed)

Modified: stable/9/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vfsops.c
==============================================================================
--- stable/9/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vfsops.c	Sat Jan 19 06:34:41 2013	(r245663)
+++ stable/9/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vfsops.c	Sat Jan 19 06:37:12 2013	(r245664)
@@ -2026,6 +2026,8 @@ zfs_vget(vfs_t *vfsp, ino_t ino, int fla
 		err = zfs_vnode_lock(*vpp, flags);
 	if (err != 0)
 		*vpp = NULL;
+	else
+		(*vpp)->v_hash = ino;
 	return (err);
 }
 


More information about the svn-src-stable-9 mailing list