Module Name:    src
Committed By:   pooka
Date:           Tue Nov 17 14:38:31 UTC 2009

Modified Files:
        src/sys/kern: vfs_bio.c

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.221 -r1.222 src/sys/kern/vfs_bio.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/kern/vfs_bio.c
diff -u src/sys/kern/vfs_bio.c:1.221 src/sys/kern/vfs_bio.c:1.222
--- src/sys/kern/vfs_bio.c:1.221	Wed Nov 11 09:15:42 2009
+++ src/sys/kern/vfs_bio.c	Tue Nov 17 14:38:31 2009
@@ -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

Reply via email to