Commit 1f986d30 authored by Randy Hron's avatar Randy Hron Committed by Linus Torvalds

[PATCH] remove space in cache names

  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.
parent 2618869b
......@@ -551,7 +551,7 @@ void kill_fasync(struct fasync_struct **fp, int sig, int band)
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");
......
......@@ -1940,7 +1940,7 @@ int lock_may_write(struct inode *inode, loff_t start, unsigned long len)
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");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment