Skip to contentSkip to conversation

efs: move headers out of include/linux/

PATCH New Christoph Hellwig 1 participant 1 message Feb 9, 2008 VFS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 efs: move headers out of include/linux/

Merge include/linux/efs_fs{_i,_dir}.h into fs/efs/efs.h. efs_vh.h remains there because this is the IRIX volume header and shouldn't really be handled by efs but by the partitioning code. efs_sb.h remains there for now because it's exported to userspace. Of course this wrong and aboot should have a copy of it's own, but I'll leave that to a separate patch to avoid any contention.

fs/efs/dir.c +1 -1
Index: linux-2.6/fs/efs/dir.c
===================================================================
@@ -5,8 +5,8 @@
  */
 
 #include <linux/buffer_head.h>
-#include <linux/efs_fs.h>
 #include <linux/smp_lock.h>
+#include "efs.h"
 
 static int efs_readdir(struct file *, void *, filldir_t);
 
fs/efs/efs.h new file +140 -0

140 lines not on this page · raw message

fs/efs/file.c +1 -1
Index: linux-2.6/fs/efs/file.c
===================================================================
@@ -7,7 +7,7 @@
  */
 
 #include <linux/buffer_head.h>
-#include <linux/efs_fs.h>
+#include "efs.h"
 
 int efs_get_block(struct inode *inode, sector_t iblock,
 		  struct buffer_head *bh_result, int create)
fs/efs/inode.c +2 -2
Index: linux-2.6/fs/efs/inode.c
===================================================================
@@ -7,11 +7,11 @@
  *              and from work (c) 1998 Mike Shaver.
  */
 
-#include <linux/efs_fs.h>
-#include <linux/efs_fs_sb.h>
 #include <linux/buffer_head.h>
 #include <linux/module.h>
 #include <linux/fs.h>
+#include "efs.h"
+#include <linux/efs_fs_sb.h>
 
 static int efs_readpage(struct file *file, struct page *page)
 {
fs/efs/namei.c +1 -1
Index: linux-2.6/fs/efs/namei.c
===================================================================
@@ -8,9 +8,9 @@
 
 #include <linux/buffer_head.h>
 #include <linux/string.h>
-#include <linux/efs_fs.h>
 #include <linux/smp_lock.h>
 #include <linux/exportfs.h>
+#include "efs.h"
 
 
 static efs_ino_t efs_find_entry(struct inode *inode, const char *name, int len) {
fs/efs/super.c +4 -3
Index: linux-2.6/fs/efs/super.c
===================================================================
@@ -8,14 +8,15 @@
 
 #include <linux/init.h>
 #include <linux/module.h>
-#include <linux/efs_fs.h>
-#include <linux/efs_vh.h>
-#include <linux/efs_fs_sb.h>
 #include <linux/exportfs.h>
 #include <linux/slab.h>
 #include <linux/buffer_head.h>
 #include <linux/vfs.h>
 
+#include "efs.h"
+#include <linux/efs_vh.h>
+#include <linux/efs_fs_sb.h>
+
 static int efs_statfs(struct dentry *dentry, struct kstatfs *buf);
 static int efs_fill_super(struct super_block *s, void *d, int silent);
 
fs/efs/symlink.c +1 -1
Index: linux-2.6/fs/efs/symlink.c
===================================================================
@@ -7,10 +7,10 @@
  */
 
 #include <linux/string.h>
-#include <linux/efs_fs.h>
 #include <linux/pagemap.h>
 #include <linux/buffer_head.h>
 #include <linux/smp_lock.h>
+#include "efs.h"
 
 static int efs_symlink_readpage(struct file *file, struct page *page)
 {
include/linux/efs_fs.h deleted +0 -56

56 lines not on this page · raw message

include/linux/efs_dir.h deleted +0 -42

42 lines not on this page · raw message

include/linux/efs_fs_i.h deleted +0 -68

68 lines not on this page · raw message