linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [patch] remove space in /proc/slabinfo cache_name
@ 2002-05-25 18:33 rwhron
  2002-05-25 19:07 ` Dave Jones
  0 siblings, 1 reply; 3+ messages in thread
From: rwhron @ 2002-05-25 18:33 UTC (permalink / raw)
  To: linux-kernel; +Cc: trivial

Most /proc/slabinfo cache_names are in the format:
cache_name.  There are a couple with spaces in the
name, which is inconsistent and requires a special case
when scripting.

Changes "fasync cache" and "file lock cache" to have
the usual underscore.

Tested on 2.5.18.  Applies to 2.4.19-pre8 with offset.

diff -ruN linux-2.5.18/fs/fcntl.c linux-2.5.18.new/fs/fcntl.c
--- linux-2.5.18/fs/fcntl.c	2002-05-25 05:26:44.000000000 -0400
+++ linux-2.5.18.new/fs/fcntl.c	2002-05-25 06:12:52.000000000 -0400
@@ -551,7 +551,7 @@
 
 static int __init fasync_init(void)
 {
-	fasync_cache = kmem_cache_create("fasync cache",
+	fasync_cache = kmem_cache_create("fasync_cache",
 		sizeof(struct fasync_struct), 0, 0, NULL, NULL);
 	if (!fasync_cache)
 		panic("cannot create fasync slab cache");
diff -ruN linux-2.5.18/fs/locks.c linux-2.5.18.new/fs/locks.c
--- linux-2.5.18/fs/locks.c	2002-05-21 01:07:37.000000000 -0400
+++ linux-2.5.18.new/fs/locks.c	2002-05-25 06:13:34.000000000 -0400
@@ -1940,7 +1940,7 @@
 
 static int __init filelock_init(void)
 {
-	filelock_cache = kmem_cache_create("file lock cache",
+	filelock_cache = kmem_cache_create("file_lock_cache",
 			sizeof(struct file_lock), 0, 0, init_once, NULL);
 	if (!filelock_cache)
 		panic("cannot create file lock slab cache");

-- 
Randy Hron


^ permalink raw reply	[flat|nested] 3+ messages in thread
* Re: [patch] remove space in /proc/slabinfo cache_name
@ 2002-05-25 19:23 rwhron
  0 siblings, 0 replies; 3+ messages in thread
From: rwhron @ 2002-05-25 19:23 UTC (permalink / raw)
  To: davej; +Cc: linux-kernel

> Ryan Mack did this back circa 2.5.9, and also changed one extra
> that you missed..

Yep. "dnotify cache".  

> http://www.codemonkey.org.uk/patches/merged/2.5.9/dj1/slabcache-namespace.diff

You're on top of things.  I really appreciate the dj tree.

-- 
Randy Hron


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-05-25 19:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-05-25 18:33 [patch] remove space in /proc/slabinfo cache_name rwhron
2002-05-25 19:07 ` Dave Jones
2002-05-25 19:23 rwhron

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).