Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/fs/sysvbfs Release pathname buffers after use.
details: https://anonhg.NetBSD.org/src/rev/851a35d8145d
branches: trunk
changeset: 755199:851a35d8145d
user: pooka <pooka%NetBSD.org@localhost>
date: Thu May 27 13:22:02 2010 +0000
description:
Release pathname buffers after use.
diffstat:
sys/fs/sysvbfs/sysvbfs_vnops.c | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diffs (38 lines):
diff -r ca1ed8d00827 -r 851a35d8145d sys/fs/sysvbfs/sysvbfs_vnops.c
--- a/sys/fs/sysvbfs/sysvbfs_vnops.c Thu May 27 08:40:19 2010 +0000
+++ b/sys/fs/sysvbfs/sysvbfs_vnops.c Thu May 27 13:22:02 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sysvbfs_vnops.c,v 1.28 2010/05/26 21:27:00 pooka Exp $ */
+/* $NetBSD: sysvbfs_vnops.c,v 1.29 2010/05/27 13:22:02 pooka Exp $ */
/*-
* Copyright (c) 2004 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sysvbfs_vnops.c,v 1.28 2010/05/26 21:27:00 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sysvbfs_vnops.c,v 1.29 2010/05/27 13:22:02 pooka Exp $");
#include <sys/param.h>
#include <sys/kernel.h>
@@ -168,6 +168,9 @@
/* unlock parent directory */
vput(a->a_dvp); /* locked at sysvbfs_lookup(); */
+ if (err || (a->a_cnp->cn_flags & SAVESTART) == 0)
+ PNBUF_PUT(a->a_cnp->cn_pnbuf);
+
return err;
}
@@ -478,6 +481,9 @@
vput(vp);
vput(dvp);
+ if (err || (ap->a_cnp->cn_flags & SAVESTART) == 0)
+ PNBUF_PUT(ap->a_cnp->cn_pnbuf);
+
return err;
}
Home |
Main Index |
Thread Index |
Old Index