From owner-svn-src-stable-9@FreeBSD.ORG Sat Jan 19 06:24:17 2013 Return-Path: Delivered-To: svn-src-stable-9@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id DEEAEE60; Sat, 19 Jan 2013 06:24:17 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id AF0B0D6C; Sat, 19 Jan 2013 06:24:17 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.5/8.14.5) with ESMTP id r0J6OHiU015379; Sat, 19 Jan 2013 06:24:17 GMT (envelope-from kib@svn.freebsd.org) Received: (from kib@localhost) by svn.freebsd.org (8.14.5/8.14.5/Submit) id r0J6OH06015378; Sat, 19 Jan 2013 06:24:17 GMT (envelope-from kib@svn.freebsd.org) Message-Id: <201301190624.r0J6OH06015378@svn.freebsd.org> From: Konstantin Belousov Date: Sat, 19 Jan 2013 06:24:17 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org Subject: svn commit: r245660 - stable/9/sys/kern X-SVN-Group: stable-9 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-stable-9@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for only the 9-stable src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Jan 2013 06:24:17 -0000 Author: kib Date: Sat Jan 19 06:24:17 2013 New Revision: 245660 URL: http://svnweb.freebsd.org/changeset/base/245660 Log: MFC r245405: Rename vfs_hash_index() to vfs_hash_bucket(). Modified: stable/9/sys/kern/vfs_hash.c Directory Properties: stable/9/sys/ (props changed) Modified: stable/9/sys/kern/vfs_hash.c ============================================================================== --- stable/9/sys/kern/vfs_hash.c Sat Jan 19 06:17:27 2013 (r245659) +++ stable/9/sys/kern/vfs_hash.c Sat Jan 19 06:24:17 2013 (r245660) @@ -55,10 +55,10 @@ vfs_hashinit(void *dummy __unused) SYSINIT(vfs_hash, SI_SUB_VFS, SI_ORDER_SECOND, vfs_hashinit, NULL); static struct vfs_hash_head * -vfs_hash_index(const struct mount *mp, u_int hash) +vfs_hash_bucket(const struct mount *mp, u_int hash) { - return(&vfs_hash_tbl[(hash + mp->mnt_hashseed) & vfs_hash_mask]); + return (&vfs_hash_tbl[(hash + mp->mnt_hashseed) & vfs_hash_mask]); } int @@ -69,7 +69,7 @@ vfs_hash_get(const struct mount *mp, u_i while (1) { mtx_lock(&vfs_hash_mtx); - LIST_FOREACH(vp, vfs_hash_index(mp, hash), v_hashlist) { + LIST_FOREACH(vp, vfs_hash_bucket(mp, hash), v_hashlist) { if (vp->v_hash != hash) continue; if (vp->v_mount != mp) @@ -113,7 +113,7 @@ vfs_hash_insert(struct vnode *vp, u_int while (1) { mtx_lock(&vfs_hash_mtx); LIST_FOREACH(vp2, - vfs_hash_index(vp->v_mount, hash), v_hashlist) { + vfs_hash_bucket(vp->v_mount, hash), v_hashlist) { if (vp2->v_hash != hash) continue; if (vp2->v_mount != vp->v_mount) @@ -138,7 +138,7 @@ vfs_hash_insert(struct vnode *vp, u_int } vp->v_hash = hash; - LIST_INSERT_HEAD(vfs_hash_index(vp->v_mount, hash), vp, v_hashlist); + LIST_INSERT_HEAD(vfs_hash_bucket(vp->v_mount, hash), vp, v_hashlist); mtx_unlock(&vfs_hash_mtx); return (0); } @@ -149,7 +149,7 @@ vfs_hash_rehash(struct vnode *vp, u_int mtx_lock(&vfs_hash_mtx); LIST_REMOVE(vp, v_hashlist); - LIST_INSERT_HEAD(vfs_hash_index(vp->v_mount, hash), vp, v_hashlist); + LIST_INSERT_HEAD(vfs_hash_bucket(vp->v_mount, hash), vp, v_hashlist); vp->v_hash = hash; mtx_unlock(&vfs_hash_mtx); }