lkml.org 
[lkml]   [2002]   [May]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] slab cache name changes (trivial, please apply)
A few of the slab caches had names containing spaces which breaks a few
slabinfo parsing scripts I use. It seems the consensus is to use
underscores instead of spaces in slab cache names, and this patch corrects
those names still using spaces. Applies cleanly against 2.4.18 and with
offsets on 2.4.19-pre7.

Thanks, Ryan
diff -aur linux-orig/fs/dnotify.c linux/fs/dnotify.c
--- linux-orig/fs/dnotify.c Tue Nov 7 23:27:57 2000
+++ linux/fs/dnotify.c Wed Apr 17 12:02:46 2002
@@ -131,7 +131,7 @@

static int __init dnotify_init(void)
{
- dn_cache = kmem_cache_create("dnotify cache",
+ dn_cache = kmem_cache_create("dnotify_cache",
sizeof(struct dnotify_struct), 0, 0, NULL, NULL);
if (!dn_cache)
panic("cannot create dnotify slab cache");
diff -aur linux-orig/fs/fcntl.c linux/fs/fcntl.c
--- linux-orig/fs/fcntl.c Mon Sep 17 13:16:30 2001
+++ linux/fs/fcntl.c Wed Apr 17 12:03:29 2002
@@ -525,7 +525,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 -aur linux-orig/fs/locks.c linux/fs/locks.c
--- linux-orig/fs/locks.c Thu Oct 11 07:52:18 2001
+++ linux/fs/locks.c Wed Apr 17 12:03:22 2002
@@ -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");
\
 
 \ /
  Last update: 2005-03-22 13:25    [W:0.027 / U:0.768 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site