]> git.karo-electronics.de Git - karo-tx-linux.git/blob - fs/btrfs/btrfs_inode.h
Btrfs: allocator improvements, inode block groups
[karo-tx-linux.git] / fs / btrfs / btrfs_inode.h
1 #ifndef __BTRFS_I__
2 #define __BTRFS_I__
3
4 struct btrfs_inode {
5         struct btrfs_root *root;
6         struct btrfs_block_group_cache *block_group;
7         struct btrfs_key location;
8         struct inode vfs_inode;
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