[PATCH 2.6.11-rc2] Move <linux/prio_tree.h> down in <linux/fs.h>

From: Tom Rini
Date: Tue Feb 01 2005 - 11:11:17 EST


<linux/prio_tree.h> is unsafe for inclusion by userland apps, but it is
in the userland-exposed portion of <linux/fs.h>. It's only needed in
the __KERNEL__ protected portion of the file, so move the #include down
to there.

lmbench-2.0.4 runs into this issue in 'flushdisk'.

Signed-off-by: Tom Rini <trini@xxxxxxxxxxxxxxxxxxx>

--- 1.377/include/linux/fs.h 2005-01-25 14:43:48 -07:00
+++ edited/include/linux/fs.h 2005-02-01 09:04:28 -07:00
@@ -16,7 +16,6 @@
#include <linux/dcache.h>
#include <linux/stat.h>
#include <linux/cache.h>
-#include <linux/prio_tree.h>
#include <linux/kobject.h>
#include <asm/atomic.h>

@@ -219,6 +218,7 @@

#include <linux/list.h>
#include <linux/radix-tree.h>
+#include <linux/prio_tree.h>
#include <linux/audit.h>
#include <linux/init.h>
#include <asm/semaphore.h>

--
Tom Rini
http://gate.crashing.org/~trini/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/