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 Only free file data we've allocated.
details: https://anonhg.NetBSD.org/src/rev/25ff50f3b916
branches: trunk
changeset: 789046:25ff50f3b916
user: pooka <pooka%NetBSD.org@localhost>
date: Mon Aug 05 11:14:00 2013 +0000
description:
Only free file data we've allocated.
diffstat:
sys/rump/librump/rumpvfs/rumpfs.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diffs (29 lines):
diff -r 942ad9cee760 -r 25ff50f3b916 sys/rump/librump/rumpvfs/rumpfs.c
--- a/sys/rump/librump/rumpvfs/rumpfs.c Mon Aug 05 07:53:31 2013 +0000
+++ b/sys/rump/librump/rumpvfs/rumpfs.c Mon Aug 05 11:14:00 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rumpfs.c,v 1.118 2013/08/04 11:09:55 pooka Exp $ */
+/* $NetBSD: rumpfs.c,v 1.119 2013/08/05 11:14:00 pooka 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.118 2013/08/04 11:09:55 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rumpfs.c,v 1.119 2013/08/05 11:14:00 pooka Exp $");
#include <sys/param.h>
#include <sys/atomic.h>
@@ -1664,7 +1664,9 @@
vp->v_data = NULL;
if (rn->rn_flags & RUMPNODE_CANRECLAIM) {
- if (vp->v_type == VREG && rn->rn_data) {
+ if (vp->v_type == VREG
+ && (rn->rn_flags & RUMPNODE_ET_PHONE_HOST) == 0
+ && rn->rn_data) {
rump_hyperfree(rn->rn_data, rn->rn_dlen);
rn->rn_data = NULL;
}
Home |
Main Index |
Thread Index |
Old Index