Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Jan 2013 05:45:33 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r245409 - head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs
Message-ID:  <201301140545.r0E5jXC3051324@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Mon Jan 14 05:45:33 2013
New Revision: 245409
URL: http://svnweb.freebsd.org/changeset/base/245409

Log:
  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

Modified:
  head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vfsops.c

Modified: head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vfsops.c
==============================================================================
--- head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vfsops.c	Mon Jan 14 05:44:47 2013	(r245408)
+++ head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vfsops.c	Mon Jan 14 05:45:33 2013	(r245409)
@@ -2025,6 +2025,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);
 }
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201301140545.r0E5jXC3051324>