cramfs: take headers to fs/cramfs
authorAl Viro <viro@zeniv.linux.org.uk>
Tue, 10 Dec 2013 21:54:28 +0000 (16:54 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Sat, 25 Jan 2014 08:13:02 +0000 (03:13 -0500)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
arch/blackfin/kernel/setup.c
arch/cris/arch-v32/drivers/axisflashmap.c
fs/cramfs/inode.c
fs/cramfs/internal.h [new file with mode: 0644]
fs/cramfs/uncompress.c
include/linux/cramfs_fs.h [deleted file]
include/linux/cramfs_fs_sb.h [deleted file]
init/do_mounts_rd.c

index 3961930421274b9f89e47f691554c6dbad61ecb6..4f424ae3b36de8225e5bee3977bde03a82548bb4 100644 (file)
@@ -17,7 +17,7 @@
 #ifdef CONFIG_MTD_UCLINUX
 #include <linux/mtd/map.h>
 #include <linux/ext2_fs.h>
-#include <linux/cramfs_fs.h>
+#include <uapi/linux/cramfs_fs.h>
 #include <linux/romfs_fs.h>
 #endif
 
index 1b6ad6247204c0b9d09f63f7e4731aaf70cb83cd..28dd77144e8fe8e24a0ac94cd309b5ac1587aac4 100644 (file)
@@ -24,8 +24,6 @@
 #include <linux/mtd/mtdram.h>
 #include <linux/mtd/partitions.h>
 
-#include <linux/cramfs_fs.h>
-
 #include <asm/axisflashmap.h>
 #include <asm/mmu.h>
 
index 508a7524fe38714144295dd1b9b3033a03b01dc3..06610cf94d579a8da72a5d6af53b098ec43e482d 100644 (file)
 #include <linux/init.h>
 #include <linux/string.h>
 #include <linux/blkdev.h>
-#include <linux/cramfs_fs.h>
 #include <linux/slab.h>
-#include <linux/cramfs_fs_sb.h>
 #include <linux/vfs.h>
 #include <linux/mutex.h>
-
+#include <uapi/linux/cramfs_fs.h>
 #include <asm/uaccess.h>
 
+#include "internal.h"
+
+/*
+ * cramfs super-block data in memory
+ */
+struct cramfs_sb_info {
+       unsigned long magic;
+       unsigned long size;
+       unsigned long blocks;
+       unsigned long files;
+       unsigned long flags;
+};
+
+static inline struct cramfs_sb_info *CRAMFS_SB(struct super_block *sb)
+{
+       return sb->s_fs_info;
+}
+
 static const struct super_operations cramfs_ops;
 static const struct inode_operations cramfs_dir_inode_operations;
 static const struct file_operations cramfs_directory_operations;
@@ -221,7 +237,7 @@ static void *cramfs_read(struct super_block *sb, unsigned int offset, unsigned i
 
 static void cramfs_kill_sb(struct super_block *sb)
 {
-       struct cramfs_sb_info *sbi = sb->s_fs_info;
+       struct cramfs_sb_info *sbi = CRAMFS_SB(sb);
        kill_block_super(sb);
        kfree(sbi);
 }
diff --git a/fs/cramfs/internal.h b/fs/cramfs/internal.h
new file mode 100644 (file)
index 0000000..349d712
--- /dev/null
@@ -0,0 +1,4 @@
+/* Uncompression interfaces to the underlying zlib */
+int cramfs_uncompress_block(void *dst, int dstlen, void *src, int srclen);
+int cramfs_uncompress_init(void);
+void cramfs_uncompress_exit(void);
index 023329800d2e42152fec5a531f91f4310cae1729..1760c1b84d9787cc27cc23e22387147ad65129e7 100644 (file)
@@ -19,7 +19,7 @@
 #include <linux/errno.h>
 #include <linux/vmalloc.h>
 #include <linux/zlib.h>
-#include <linux/cramfs_fs.h>
+#include "internal.h"
 
 static z_stream stream;
 static int initialized;
diff --git a/include/linux/cramfs_fs.h b/include/linux/cramfs_fs.h
deleted file mode 100644 (file)
index 1337896..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-#ifndef __CRAMFS_H
-#define __CRAMFS_H
-
-#include <uapi/linux/cramfs_fs.h>
-
-/* Uncompression interfaces to the underlying zlib */
-int cramfs_uncompress_block(void *dst, int dstlen, void *src, int srclen);
-int cramfs_uncompress_init(void);
-void cramfs_uncompress_exit(void);
-#endif
diff --git a/include/linux/cramfs_fs_sb.h b/include/linux/cramfs_fs_sb.h
deleted file mode 100644 (file)
index 8390693..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-#ifndef _CRAMFS_FS_SB
-#define _CRAMFS_FS_SB
-
-/*
- * cramfs super-block data in memory
- */
-struct cramfs_sb_info {
-                       unsigned long magic;
-                       unsigned long size;
-                       unsigned long blocks;
-                       unsigned long files;
-                       unsigned long flags;
-};
-
-static inline struct cramfs_sb_info *CRAMFS_SB(struct super_block *sb)
-{
-       return sb->s_fs_info;
-}
-
-#endif
index 7c098ac9068a582af317596908390ad74011040e..a8227022e3a02210afaab0cc628729f80ca07af8 100644 (file)
@@ -13,7 +13,7 @@
 #include <linux/minix_fs.h>
 #include <linux/ext2_fs.h>
 #include <linux/romfs_fs.h>
-#include <linux/cramfs_fs.h>
+#include <uapi/linux/cramfs_fs.h>
 #include <linux/initrd.h>
 #include <linux/string.h>
 #include <linux/slab.h>