Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/rump/librump/rumpvfs use vref() for increasing reference...
details: https://anonhg.NetBSD.org/src/rev/7c41eb90a9a8
branches: trunk
changeset: 747971:7c41eb90a9a8
user: pooka <pooka%NetBSD.org@localhost>
date: Wed Oct 07 09:55:35 2009 +0000
description:
use vref() for increasing reference count instead of homegrown brilliance
diffstat:
sys/rump/librump/rumpvfs/rump_vfs.c | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)
diffs (29 lines):
diff -r e5b9a74131c5 -r 7c41eb90a9a8 sys/rump/librump/rumpvfs/rump_vfs.c
--- a/sys/rump/librump/rumpvfs/rump_vfs.c Wed Oct 07 09:50:43 2009 +0000
+++ b/sys/rump/librump/rumpvfs/rump_vfs.c Wed Oct 07 09:55:35 2009 +0000
@@ -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
Home |
Main Index |
Thread Index |
Old Index