diff options
author | Phillip Lougher <phillip@lougher.demon.co.uk> | 2011-01-06 01:08:50 -0500 |
---|---|---|
committer | Phillip Lougher <phillip@lougher.demon.co.uk> | 2011-01-13 16:24:15 -0500 |
commit | 8fcd97216f45b1691f8f91f35cc108d06e0bfca8 (patch) | |
tree | f22ddb09a78512768e6e4f766e8b61721175aee5 /fs/squashfs/squashfs_fs_i.h | |
parent | 6197fd86789a28760f8375b5ae8885cd7258042f (diff) |
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>
Diffstat (limited to 'fs/squashfs/squashfs_fs_i.h')
-rw-r--r-- | fs/squashfs/squashfs_fs_i.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/squashfs/squashfs_fs_i.h b/fs/squashfs/squashfs_fs_i.h index d3e3a37f28a..359baefc01f 100644 --- a/fs/squashfs/squashfs_fs_i.h +++ b/fs/squashfs/squashfs_fs_i.h | |||
@@ -45,4 +45,10 @@ struct squashfs_inode_info { | |||
45 | }; | 45 | }; |
46 | struct inode vfs_inode; | 46 | struct inode vfs_inode; |
47 | }; | 47 | }; |
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 | } | ||
48 | #endif | 54 | #endif |