This source file includes following definitions.
- UDF_I
1
2 #ifndef _UDF_I_H
3 #define _UDF_I_H
4
5 struct extent_position {
6 struct buffer_head *bh;
7 uint32_t offset;
8 struct kernel_lb_addr block;
9 };
10
11 struct udf_ext_cache {
12
13 struct extent_position epos;
14
15 loff_t lstart;
16 };
17
18
19
20
21
22
23
24
25
26
27
28
29
30 struct udf_inode_info {
31 struct timespec64 i_crtime;
32
33 struct kernel_lb_addr i_location;
34 __u64 i_unique;
35 __u32 i_lenEAttr;
36 __u32 i_lenAlloc;
37 __u64 i_lenExtents;
38 __u32 i_next_alloc_block;
39 __u32 i_next_alloc_goal;
40 __u32 i_checkpoint;
41 __u32 i_extraPerms;
42 unsigned i_alloc_type : 3;
43 unsigned i_efe : 1;
44 unsigned i_use : 1;
45 unsigned i_strat4096 : 1;
46 unsigned i_streamdir : 1;
47 unsigned reserved : 25;
48 union {
49 struct short_ad *i_sad;
50 struct long_ad *i_lad;
51 __u8 *i_data;
52 } i_ext;
53 struct kernel_lb_addr i_locStreamdir;
54 __u64 i_lenStreams;
55 struct rw_semaphore i_data_sem;
56 struct udf_ext_cache cached_extent;
57
58 spinlock_t i_extent_cache_lock;
59 struct inode vfs_inode;
60 };
61
62 static inline struct udf_inode_info *UDF_I(struct inode *inode)
63 {
64 return container_of(inode, struct udf_inode_info, vfs_inode);
65 }
66
67 #endif