udf_i.h 742 B

1234567891011121314151617181920212223242526272829303132
  1. #ifndef _UDF_I_H
  2. #define _UDF_I_H
  3. struct udf_inode_info {
  4. struct timespec i_crtime;
  5. /* Physical address of inode */
  6. struct kernel_lb_addr i_location;
  7. __u64 i_unique;
  8. __u32 i_lenEAttr;
  9. __u32 i_lenAlloc;
  10. __u64 i_lenExtents;
  11. __u32 i_next_alloc_block;
  12. __u32 i_next_alloc_goal;
  13. unsigned i_alloc_type : 3;
  14. unsigned i_efe : 1; /* extendedFileEntry */
  15. unsigned i_use : 1; /* unallocSpaceEntry */
  16. unsigned i_strat4096 : 1;
  17. unsigned reserved : 26;
  18. union {
  19. struct short_ad *i_sad;
  20. struct long_ad *i_lad;
  21. __u8 *i_data;
  22. } i_ext;
  23. struct inode vfs_inode;
  24. };
  25. static inline struct udf_inode_info *UDF_I(struct inode *inode)
  26. {
  27. return list_entry(inode, struct udf_inode_info, vfs_inode);
  28. }
  29. #endif /* _UDF_I_H) */