blob: 6b50076b02d502d08b6b84f9bd1ae34af353f90b [file] [log] [blame]
Chris Mason2c90e5d2007-04-02 10:50:19 -04001#ifndef __BTRFS_I__
2#define __BTRFS_I__
3
4struct btrfs_inode {
Chris Masond6e4a422007-04-06 15:37:36 -04005 struct btrfs_root *root;
Chris Mason31f3c992007-04-30 15:25:45 -04006 struct btrfs_block_group_cache *block_group;
Chris Masond6e4a422007-04-06 15:37:36 -04007 struct btrfs_key location;
Chris Mason2c90e5d2007-04-02 10:50:19 -04008 struct inode vfs_inode;
Chris Mason2c90e5d2007-04-02 10:50:19 -04009};
10static inline struct btrfs_inode *BTRFS_I(struct inode *inode)
11{
12 return container_of(inode, struct btrfs_inode, vfs_inode);
13}
14
15#endif