patch-2.1.118 linux/fs/file_table.c

Next file: linux/fs/filesystems.c
Previous file: linux/fs/fifo.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.117/linux/fs/file_table.c linux/fs/file_table.c
@@ -12,6 +12,7 @@
 #include <linux/string.h>
 #include <linux/mm.h>
 #include <linux/slab.h>
+#include <linux/init.h>
 
 /* SLAB cache for filp's. */
 static kmem_cache_t *filp_cache;
@@ -44,8 +45,7 @@
 	file->f_pprev = &inuse_filps;
 }
 
-/* N.B. This should be an __initfunc ... */
-void file_table_init(void)
+void __init file_table_init(void)
 {
 	filp_cache = kmem_cache_create("filp", sizeof(struct file),
 				       0,

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov