Skip to contentSkip to conversation

- move linux/log2.h header to xfs_linux.h

PATCH In review Eric Sandeen 1 participant 1 message Jul 20, 2007 XFS filesystem

lore
Share & tools
lore
#0 lore raw

PATCH 5/7 - move linux/log2.h header to xfs_linux.h

Generally we try not to directly include linux header files in core xfs code; xfs_linux.h is the spot for that.

fs/xfs/linux-2.4/xfs_linux.h +1 -0
Index: linux/fs/xfs/linux-2.4/xfs_linux.h
===================================================================
@@ -93,6 +93,7 @@ typedef unsigned int gfp_t;
 #include <linux/init.h>
 #include <linux/list.h>
 #include <linux/proc_fs.h>
+#include <linux/log2.h>
 
 #include <asm/page.h>
 #include <asm/div64.h>
fs/xfs/linux-2.6/xfs_linux.h +1 -0
Index: linux/fs/xfs/linux-2.6/xfs_linux.h
===================================================================
@@ -75,6 +75,7 @@
 #include <linux/cpu.h>
 #include <linux/notifier.h>
 #include <linux/delay.h>
+#include <linux/log2.h>
 
 #include <asm/page.h>
 #include <asm/div64.h>
fs/xfs/xfs_inode.c +0 -2
Index: linux/fs/xfs/xfs_inode.c
===================================================================
@@ -50,8 +50,6 @@
 #include "xfs_acl.h"
 #include "xfs_filestream.h"
 
-#include <linux/log2.h>
-
 kmem_zone_t *xfs_ifork_zone;
 kmem_zone_t *xfs_inode_zone;
 kmem_zone_t *xfs_chashlist_zone;