summaryrefslogtreecommitdiffstats
path: root/fs/squashfs/squashfs_fs_i.h
diff options
context:
space:
mode:
authorPhillip Lougher <phillip@lougher.demon.co.uk>2011-01-06 06:08:50 +0000
committerPhillip Lougher <phillip@lougher.demon.co.uk>2011-01-13 21:24:15 +0000
commit8fcd97216f45b1691f8f91f35cc108d06e0bfca8 (patch)
treef22ddb09a78512768e6e4f766e8b61721175aee5 /fs/squashfs/squashfs_fs_i.h
parent6197fd86789a28760f8375b5ae8885cd7258042f (diff)
downloadop-kernel-dev-8fcd97216f45b1691f8f91f35cc108d06e0bfca8.zip
op-kernel-dev-8fcd97216f45b1691f8f91f35cc108d06e0bfca8.tar.gz
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.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/squashfs/squashfs_fs_i.h b/fs/squashfs/squashfs_fs_i.h
index d3e3a37..359baef 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
OpenPOWER on IntegriCloud