Squashfs: move squashfs_i() definition from squashfs.h
authorPhillip Lougher <phillip@lougher.demon.co.uk>
Thu, 6 Jan 2011 06:08:50 +0000 (06:08 +0000)
committerPhillip Lougher <phillip@lougher.demon.co.uk>
Thu, 13 Jan 2011 21:24:15 +0000 (21:24 +0000)
Move squashfs_i() definition out of squashfs.h, this eliminates
the need to #include squashfs_fs_i.h from numerous files.

Signed-off-by: Phillip Lougher <phillip@lougher.demon.co.uk>
fs/squashfs/block.c
fs/squashfs/cache.c
fs/squashfs/decompressor.c
fs/squashfs/fragment.c
fs/squashfs/id.c
fs/squashfs/lzo_wrapper.c
fs/squashfs/squashfs.h
fs/squashfs/squashfs_fs_i.h
fs/squashfs/xattr_id.c
fs/squashfs/zlib_wrapper.c

index 653c030eb840db0757df698745beca793ce03bf5..2fb2882f0fa7b1a1b656f68596ec740d10650cd9 100644 (file)
@@ -34,7 +34,6 @@
 
 #include "squashfs_fs.h"
 #include "squashfs_fs_sb.h"
-#include "squashfs_fs_i.h"
 #include "squashfs.h"
 #include "decompressor.h"
 
index 57314bee9059709d9230c80dff70210729236c07..26b15ae34d6ff8a9bdd1a3646a70af357155991d 100644 (file)
@@ -55,7 +55,6 @@
 
 #include "squashfs_fs.h"
 #include "squashfs_fs_sb.h"
-#include "squashfs_fs_i.h"
 #include "squashfs.h"
 
 /*
index 482d78197811bcc023543541a9a413e25bf32a22..50b22d330cecde8988db0d485ddb836cc036de06 100644 (file)
@@ -27,7 +27,6 @@
 
 #include "squashfs_fs.h"
 #include "squashfs_fs_sb.h"
-#include "squashfs_fs_i.h"
 #include "decompressor.h"
 #include "squashfs.h"
 
index 7c90bbd6879d533a9dc021c8add961ed252d2e84..7eef571443c6d50936619357514fcc9d8df3be57 100644 (file)
@@ -39,7 +39,6 @@
 
 #include "squashfs_fs.h"
 #include "squashfs_fs_sb.h"
-#include "squashfs_fs_i.h"
 #include "squashfs.h"
 
 /*
index b7f64bcd2b707df4e5385c15efe8f553cc70fa1d..d8f32452638e192f4418ff7ffd226a27c7f373c3 100644 (file)
@@ -37,7 +37,6 @@
 
 #include "squashfs_fs.h"
 #include "squashfs_fs_sb.h"
-#include "squashfs_fs_i.h"
 #include "squashfs.h"
 
 /*
index 5d87789bf1c161bf5db7a92a59571273d7a63138..7da759e34c525e8bb12efd2ae496b0776349c3b0 100644 (file)
@@ -29,7 +29,6 @@
 
 #include "squashfs_fs.h"
 #include "squashfs_fs_sb.h"
-#include "squashfs_fs_i.h"
 #include "squashfs.h"
 #include "decompressor.h"
 
index 5d45569d5f7290fda54a9b3c8d6e0b92dd5b5bc4..18f187fb486b4d014f84364823f3e9e5e9b80d58 100644 (file)
 
 #define WARNING(s, args...)    pr_warning("SQUASHFS: "s, ## args)
 
-static inline struct squashfs_inode_info *squashfs_i(struct inode *inode)
-{
-       return list_entry(inode, struct squashfs_inode_info, vfs_inode);
-}
-
 /* block.c */
 extern int squashfs_read_data(struct super_block *, void **, u64, int, u64 *,
                                int, int);
index d3e3a37f28a14609c17a4d4da4759e6567346bc4..359baefc01fc00be8eae64f74e77b847061e5521 100644 (file)
@@ -45,4 +45,10 @@ struct squashfs_inode_info {
        };
        struct inode    vfs_inode;
 };
+
+
+static inline struct squashfs_inode_info *squashfs_i(struct inode *inode)
+{
+       return list_entry(inode, struct squashfs_inode_info, vfs_inode);
+}
 #endif
index d33be5dd6c32564fbe8ff4768b8d2f96a6175252..05385dbe1465f8ea4a2cec4cddba4042cb22ceed 100644 (file)
@@ -32,7 +32,6 @@
 
 #include "squashfs_fs.h"
 #include "squashfs_fs_sb.h"
-#include "squashfs_fs_i.h"
 #include "squashfs.h"
 #include "xattr.h"
 
index ab5801f66e2670931bc3e6e8fff8704df107beca..818a5e063faf37c03c189c8043ec470f52024575 100644 (file)
@@ -29,7 +29,6 @@
 
 #include "squashfs_fs.h"
 #include "squashfs_fs_sb.h"
-#include "squashfs_fs_i.h"
 #include "squashfs.h"
 #include "decompressor.h"