btrfs_inode.h 325 B

123456789101112131415
  1. #ifndef __BTRFS_I__
  2. #define __BTRFS_I__
  3. struct btrfs_inode {
  4. struct btrfs_root *root;
  5. struct btrfs_block_group_cache *block_group;
  6. struct btrfs_key location;
  7. struct inode vfs_inode;
  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. #endif