Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern Add a comment saying "name" to pool_init() is never...
details: https://anonhg.NetBSD.org/src/rev/01667845f9b4
branches: trunk
changeset: 749080:01667845f9b4
user: pooka <pooka%NetBSD.org@localhost>
date: Tue Nov 17 14:38:31 2009 +0000
description:
Add a comment saying "name" to pool_init() is never freed (fixing
requires touching pool implementation). No biggie, though, since
the pools themselves are never freed.
diffstat:
sys/kern/vfs_bio.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 5d9d2b853f0f -r 01667845f9b4 sys/kern/vfs_bio.c
--- a/sys/kern/vfs_bio.c Mon Nov 16 22:28:43 2009 +0000
+++ b/sys/kern/vfs_bio.c Tue Nov 17 14:38:31 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vfs_bio.c,v 1.221 2009/11/11 09:15:42 rmind Exp $ */
+/* $NetBSD: vfs_bio.c,v 1.222 2009/11/17 14:38:31 pooka Exp $ */
/*-
* Copyright (c) 2007, 2008, 2009 The NetBSD Foundation, Inc.
@@ -123,7 +123,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vfs_bio.c,v 1.221 2009/11/11 09:15:42 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vfs_bio.c,v 1.222 2009/11/17 14:38:31 pooka Exp $");
#include "fs_ffs.h"
#include "opt_bufcache.h"
@@ -492,7 +492,7 @@
struct pool_allocator *pa;
struct pool *pp = &bmempools[i];
u_int size = 1 << (i + MEMPOOL_INDEX_OFFSET);
- char *name = kmem_alloc(8, KM_SLEEP);
+ char *name = kmem_alloc(8, KM_SLEEP); /* XXX: never freed */
if (__predict_true(size >= 1024))
(void)snprintf(name, 8, "buf%dk", size / 1024);
else
Home |
Main Index |
Thread Index |
Old Index