[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20061118054408.8884.53656.sendpatchset@schroedinger.engr.sgi.com>
Date: Fri, 17 Nov 2006 21:44:08 -0800 (PST)
From: Christoph Lameter <clameter@....com>
To: linux-kernel@...r.kernel.org
Cc: linux-mm@...ck.org, Pekka Enberg <penberg@...helsinki.fi>,
Christoph Lameter <clameter@....com>,
Manfred Spraul <manfred@...orfullife.com>
Subject: [RFC 5/7] Use external declaration for filep_cachep
Use external declaration for filep_cachep.
filp_cachep is used in fs/file_table.c. Its defined in fs/dcache.c.
The easiest solution here is to add an external declaration to
fs/file_table.c.
Signed-off-by: Christoph Lameter <clameter@....com>
Index: linux-2.6.19-rc5-mm2/include/linux/slab.h
===================================================================
--- linux-2.6.19-rc5-mm2.orig/include/linux/slab.h 2006-11-17 23:03:59.268512148 -0600
+++ linux-2.6.19-rc5-mm2/include/linux/slab.h 2006-11-17 23:04:05.859898302 -0600
@@ -298,7 +298,6 @@ static inline void kmem_set_shrinker(kme
/* System wide caches */
extern kmem_cache_t *names_cachep;
-extern kmem_cache_t *filp_cachep;
extern kmem_cache_t *fs_cachep;
#endif /* __KERNEL__ */
Index: linux-2.6.19-rc5-mm2/fs/file_table.c
===================================================================
--- linux-2.6.19-rc5-mm2.orig/fs/file_table.c 2006-11-15 16:47:59.622264626 -0600
+++ linux-2.6.19-rc5-mm2/fs/file_table.c 2006-11-17 23:04:05.885291107 -0600
@@ -35,6 +35,8 @@ __cacheline_aligned_in_smp DEFINE_SPINLO
static struct percpu_counter nr_files __cacheline_aligned_in_smp;
+extern kmem_cache_t *filp_cachep;
+
static inline void file_free_rcu(struct rcu_head *head)
{
struct file *f = container_of(head, struct file, f_u.fu_rcuhead);
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists