Commit 8fcd9721 authored by Phillip Lougher's avatar Phillip Lougher

Squashfs: move squashfs_i() definition from squashfs.h

Move squashfs_i() definition out of squashfs.h, this eliminates
the need to #include squashfs_fs_i.h from numerous files.
Signed-off-by: default avatarPhillip Lougher <phillip@lougher.demon.co.uk>
parent 6197fd86
...@@ -34,7 +34,6 @@ ...@@ -34,7 +34,6 @@
#include "squashfs_fs.h" #include "squashfs_fs.h"
#include "squashfs_fs_sb.h" #include "squashfs_fs_sb.h"
#include "squashfs_fs_i.h"
#include "squashfs.h" #include "squashfs.h"
#include "decompressor.h" #include "decompressor.h"
......
...@@ -55,7 +55,6 @@ ...@@ -55,7 +55,6 @@
#include "squashfs_fs.h" #include "squashfs_fs.h"
#include "squashfs_fs_sb.h" #include "squashfs_fs_sb.h"
#include "squashfs_fs_i.h"
#include "squashfs.h" #include "squashfs.h"
/* /*
......
...@@ -27,7 +27,6 @@ ...@@ -27,7 +27,6 @@
#include "squashfs_fs.h" #include "squashfs_fs.h"
#include "squashfs_fs_sb.h" #include "squashfs_fs_sb.h"
#include "squashfs_fs_i.h"
#include "decompressor.h" #include "decompressor.h"
#include "squashfs.h" #include "squashfs.h"
......
...@@ -39,7 +39,6 @@ ...@@ -39,7 +39,6 @@
#include "squashfs_fs.h" #include "squashfs_fs.h"
#include "squashfs_fs_sb.h" #include "squashfs_fs_sb.h"
#include "squashfs_fs_i.h"
#include "squashfs.h" #include "squashfs.h"
/* /*
......
...@@ -37,7 +37,6 @@ ...@@ -37,7 +37,6 @@
#include "squashfs_fs.h" #include "squashfs_fs.h"
#include "squashfs_fs_sb.h" #include "squashfs_fs_sb.h"
#include "squashfs_fs_i.h"
#include "squashfs.h" #include "squashfs.h"
/* /*
......
...@@ -29,7 +29,6 @@ ...@@ -29,7 +29,6 @@
#include "squashfs_fs.h" #include "squashfs_fs.h"
#include "squashfs_fs_sb.h" #include "squashfs_fs_sb.h"
#include "squashfs_fs_i.h"
#include "squashfs.h" #include "squashfs.h"
#include "decompressor.h" #include "decompressor.h"
......
...@@ -27,11 +27,6 @@ ...@@ -27,11 +27,6 @@
#define WARNING(s, args...) pr_warning("SQUASHFS: "s, ## args) #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 */ /* block.c */
extern int squashfs_read_data(struct super_block *, void **, u64, int, u64 *, extern int squashfs_read_data(struct super_block *, void **, u64, int, u64 *,
int, int); int, int);
......
...@@ -45,4 +45,10 @@ struct squashfs_inode_info { ...@@ -45,4 +45,10 @@ struct squashfs_inode_info {
}; };
struct inode vfs_inode; 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 #endif
...@@ -32,7 +32,6 @@ ...@@ -32,7 +32,6 @@
#include "squashfs_fs.h" #include "squashfs_fs.h"
#include "squashfs_fs_sb.h" #include "squashfs_fs_sb.h"
#include "squashfs_fs_i.h"
#include "squashfs.h" #include "squashfs.h"
#include "xattr.h" #include "xattr.h"
......
...@@ -29,7 +29,6 @@ ...@@ -29,7 +29,6 @@
#include "squashfs_fs.h" #include "squashfs_fs.h"
#include "squashfs_fs_sb.h" #include "squashfs_fs_sb.h"
#include "squashfs_fs_i.h"
#include "squashfs.h" #include "squashfs.h"
#include "decompressor.h" #include "decompressor.h"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment