Skip to content

Commit 8fcd972

Browse files
author
Phillip Lougher
committed
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: Phillip Lougher <phillip@lougher.demon.co.uk>
1 parent 6197fd8 commit 8fcd972

10 files changed

Lines changed: 6 additions & 13 deletions

File tree

‎fs/squashfs/block.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434

3535
#include "squashfs_fs.h"
3636
#include "squashfs_fs_sb.h"
37-
#include "squashfs_fs_i.h"
3837
#include "squashfs.h"
3938
#include "decompressor.h"
4039

‎fs/squashfs/cache.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@
5555

5656
#include "squashfs_fs.h"
5757
#include "squashfs_fs_sb.h"
58-
#include "squashfs_fs_i.h"
5958
#include "squashfs.h"
6059

6160
/*

‎fs/squashfs/decompressor.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727

2828
#include "squashfs_fs.h"
2929
#include "squashfs_fs_sb.h"
30-
#include "squashfs_fs_i.h"
3130
#include "decompressor.h"
3231
#include "squashfs.h"
3332

‎fs/squashfs/fragment.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939

4040
#include "squashfs_fs.h"
4141
#include "squashfs_fs_sb.h"
42-
#include "squashfs_fs_i.h"
4342
#include "squashfs.h"
4443

4544
/*

‎fs/squashfs/id.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737

3838
#include "squashfs_fs.h"
3939
#include "squashfs_fs_sb.h"
40-
#include "squashfs_fs_i.h"
4140
#include "squashfs.h"
4241

4342
/*

‎fs/squashfs/lzo_wrapper.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929

3030
#include "squashfs_fs.h"
3131
#include "squashfs_fs_sb.h"
32-
#include "squashfs_fs_i.h"
3332
#include "squashfs.h"
3433
#include "decompressor.h"
3534

‎fs/squashfs/squashfs.h‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,6 @@
2727

2828
#define WARNING(s, args...) pr_warning("SQUASHFS: "s, ## args)
2929

30-
static inline struct squashfs_inode_info *squashfs_i(struct inode *inode)
31-
{
32-
return list_entry(inode, struct squashfs_inode_info, vfs_inode);
33-
}
34-
3530
/* block.c */
3631
extern int squashfs_read_data(struct super_block *, void **, u64, int, u64 *,
3732
int, int);

‎fs/squashfs/squashfs_fs_i.h‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,10 @@ struct squashfs_inode_info {
4545
};
4646
struct inode vfs_inode;
4747
};
48+
49+
50+
static inline struct squashfs_inode_info *squashfs_i(struct inode *inode)
51+
{
52+
return list_entry(inode, struct squashfs_inode_info, vfs_inode);
53+
}
4854
#endif

‎fs/squashfs/xattr_id.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232

3333
#include "squashfs_fs.h"
3434
#include "squashfs_fs_sb.h"
35-
#include "squashfs_fs_i.h"
3635
#include "squashfs.h"
3736
#include "xattr.h"
3837

‎fs/squashfs/zlib_wrapper.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929

3030
#include "squashfs_fs.h"
3131
#include "squashfs_fs_sb.h"
32-
#include "squashfs_fs_i.h"
3332
#include "squashfs.h"
3433
#include "decompressor.h"
3534

0 commit comments

Comments
 (0)