diff options
author | Phillip Lougher <phillip@lougher.demon.co.uk> | 2011-01-06 07:08:50 +0100 |
---|---|---|
committer | Phillip Lougher <phillip@lougher.demon.co.uk> | 2011-01-13 22:24:15 +0100 |
commit | 8fcd97216f45b1691f8f91f35cc108d06e0bfca8 (patch) | |
tree | f22ddb09a78512768e6e4f766e8b61721175aee5 /fs/squashfs/squashfs_fs_i.h | |
parent | Squashfs: get rid of default n in Kconfig (diff) | |
download | linux-8fcd97216f45b1691f8f91f35cc108d06e0bfca8.tar.xz linux-8fcd97216f45b1691f8f91f35cc108d06e0bfca8.zip |
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 d3e3a37f28a1..359baefc01fc 100644 --- a/fs/squashfs/squashfs_fs_i.h +++ b/fs/squashfs/squashfs_fs_i.h @@ -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 |