Chris Mason | 2c90e5d | 2007-04-02 10:50:19 -0400 | [diff] [blame] | 1 | #ifndef __BTRFS_I__ |
| 2 | #define __BTRFS_I__ |
| 3 | |
| 4 | struct btrfs_inode { |
Chris Mason | d6e4a42 | 2007-04-06 15:37:36 -0400 | [diff] [blame] | 5 | struct btrfs_root *root; |
Chris Mason | 31f3c99 | 2007-04-30 15:25:45 -0400 | [diff] [blame^] | 6 | struct btrfs_block_group_cache *block_group; |
Chris Mason | d6e4a42 | 2007-04-06 15:37:36 -0400 | [diff] [blame] | 7 | struct btrfs_key location; |
Chris Mason | 2c90e5d | 2007-04-02 10:50:19 -0400 | [diff] [blame] | 8 | struct inode vfs_inode; |
Chris Mason | 2c90e5d | 2007-04-02 10:50:19 -0400 | [diff] [blame] | 9 | }; |
| 10 | static inline struct btrfs_inode *BTRFS_I(struct inode *inode) |
| 11 | { |
| 12 | return container_of(inode, struct btrfs_inode, vfs_inode); |
| 13 | } |
| 14 | |
| 15 | #endif |