diff options
Diffstat (limited to 'fs/btrfs/btrfs_inode.h')
-rw-r--r-- | fs/btrfs/btrfs_inode.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/fs/btrfs/btrfs_inode.h b/fs/btrfs/btrfs_inode.h new file mode 100644 index 000000000000..e159841650a4 --- /dev/null +++ b/fs/btrfs/btrfs_inode.h | |||
@@ -0,0 +1,14 @@ | |||
1 | #ifndef __BTRFS_I__ | ||
2 | #define __BTRFS_I__ | ||
3 | |||
4 | struct btrfs_inode { | ||
5 | u32 magic; | ||
6 | struct inode vfs_inode; | ||
7 | u32 magic2; | ||
8 | }; | ||
9 | static inline struct btrfs_inode *BTRFS_I(struct inode *inode) | ||
10 | { | ||
11 | return container_of(inode, struct btrfs_inode, vfs_inode); | ||
12 | } | ||
13 | |||
14 | #endif | ||