Module Name: src Committed By: pooka Date: Wed Oct 7 09:55:36 UTC 2009
Modified Files: src/sys/rump/librump/rumpvfs: rump_vfs.c Log Message: use vref() for increasing reference count instead of homegrown brilliance To generate a diff of this commit: cvs rdiff -u -r1.28 -r1.29 src/sys/rump/librump/rumpvfs/rump_vfs.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/rump/librump/rumpvfs/rump_vfs.c diff -u src/sys/rump/librump/rumpvfs/rump_vfs.c:1.28 src/sys/rump/librump/rumpvfs/rump_vfs.c:1.29 --- src/sys/rump/librump/rumpvfs/rump_vfs.c:1.28 Wed Oct 7 09:50:43 2009 +++ src/sys/rump/librump/rumpvfs/rump_vfs.c Wed Oct 7 09:55:35 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: rump_vfs.c,v 1.28 2009/10/07 09:50:43 pooka Exp $ */ +/* $NetBSD: rump_vfs.c,v 1.29 2009/10/07 09:55:35 pooka Exp $ */ /* * Copyright (c) 2008 Antti Kantee. All Rights Reserved. @@ -29,7 +29,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: rump_vfs.c,v 1.28 2009/10/07 09:50:43 pooka Exp $"); +__KERNEL_RCSID(0, "$NetBSD: rump_vfs.c,v 1.29 2009/10/07 09:55:35 pooka Exp $"); #include <sys/param.h> #include <sys/buf.h> @@ -297,9 +297,7 @@ rump_vp_incref(struct vnode *vp) { - mutex_enter(&vp->v_interlock); - ++vp->v_usecount; - mutex_exit(&vp->v_interlock); + vref(vp); } int