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 Always use (struct rumpfs_node **) ...
details: https://anonhg.NetBSD.org/src/rev/1a2778896169
branches: trunk
changeset: 335336:1a2778896169
user: hannken <hannken%NetBSD.org@localhost>
date: Sat Jan 03 16:30:32 2015 +0000
description:
Always use (struct rumpfs_node **) as key to vcache operations.
diffstat:
sys/rump/librump/rumpvfs/rumpfs.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r 651eba4ce004 -r 1a2778896169 sys/rump/librump/rumpvfs/rumpfs.c
--- a/sys/rump/librump/rumpvfs/rumpfs.c Sat Jan 03 16:15:25 2015 +0000
+++ b/sys/rump/librump/rumpvfs/rumpfs.c Sat Jan 03 16:30:32 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rumpfs.c,v 1.131 2015/01/01 16:02:50 hannken Exp $ */
+/* $NetBSD: rumpfs.c,v 1.132 2015/01/03 16:30:32 hannken Exp $ */
/*
* Copyright (c) 2009, 2010, 2011 Antti Kantee. All Rights Reserved.
@@ -26,7 +26,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rumpfs.c,v 1.131 2015/01/01 16:02:50 hannken Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rumpfs.c,v 1.132 2015/01/03 16:30:32 hannken Exp $");
#include <sys/param.h>
#include <sys/atomic.h>
@@ -486,7 +486,7 @@
mp = NULL;
}
mutex_exit(&reclock);
- if (mp && vcache_get(mp, rn, sizeof(rn), &vp) == 0)
+ if (mp && vcache_get(mp, &rn, sizeof(rn), &vp) == 0)
vgone(vp);
}
@@ -1588,7 +1588,7 @@
struct vnode *vp = ap->a_vp;
struct rumpfs_node *rn = vp->v_data;
- vcache_remove(vp->v_mount, &vp->v_data, sizeof(vp->v_data));
+ vcache_remove(vp->v_mount, &rn, sizeof(rn));
mutex_enter(&reclock);
rn->rn_vp = NULL;
mutex_exit(&reclock);
Home |
Main Index |
Thread Index |
Old Index