diff options
author | Phillip Lougher <phillip@lougher.demon.co.uk> | 2011-01-06 06:08:50 +0000 |
---|---|---|
committer | Phillip Lougher <phillip@lougher.demon.co.uk> | 2011-01-13 21:24:15 +0000 |
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 { }; 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 |