lkml.org 
[lkml]   [2000]   [Aug]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: [PATCH] signal_struct slab cache
On Mon, 7 Aug 2000, Mark Hemment wrote:
diff -ur -X ignore --new-file linux-2.4.0-test5/kernel/exit.c mem-2.4.0-test5/kernel/exit.c
--- linux-2.4.0-test5/kernel/exit.c Fri Jul 28 00:47:16 2000
+++ mem-2.4.0-test5/kernel/exit.c Mon Aug 7 14:06:27 2000
@@ -20,6 +20,8 @@
extern void sem_exit (void);
extern struct task_struct *child_reaper;

+extern kmem_cache_t *sigact_cachep;
+

Hi Mark,

There is a standard place for system-wide SLAB caches -
include/linux/slab.h (grep for "System wide") - please move that extern in
there because kernel/exit.c includes malloc.h which is really slab.h so it
should be okay.

Also, Linus was saying that it would be nice to combine the
subsystem-specific SLAB cache creations in one place. I have done this for
VFS in vfs_caches_init() - perhaps you could do that VM? Just an idea...
Regards,
Tigran


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:58    [W:0.095 / U:0.044 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site