TRIVIAL: [email protected]: remove space in cache names
Subsystems (2)
PATCH 1/1 TRIVIAL: [email protected]: remove space in cache names
[email protected]: remove space in _proc_slabinfo cache_name:
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.
fs/fcntl.c renamed from fs/fcntl.c.orig +1 -1
@@ -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" );
fs/locks.c renamed from fs/locks.c.orig +1 -1
@@ -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" );
--
Anyone who quotes me in their sig is an idiot. -- Rusty Russell.
Quoted 10 lines · Rusty Russell
[email protected]: remove space in
_proc_slabinfocache_name:
Most/proc/slabinfocache_namesare 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.
If you are looking in this area already plese remove the completely redundant and inconsistently used cache suffix for some entry names too. Slabinfo is about allocation caches and nothing else.
Quoted 10 lines · Martin Dalecki
Quoted 9 lines · Rusty Russell
[email protected]: remove space in
_proc_slabinfocache_name:
Most/proc/slabinfocache_namesare 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.
Quoted 6 lines
Quoted 1 line
Tested on 2.5.18. Applies to 2.4.19-pre8 with offset.
If you are looking in this area already plese remove the completely redundant and inconsistently used cache suffix for some entry names too. Slabinfo is about allocation caches and nothing else.
Amen.
Signature · 1 line
Daniel