VFS: fix statfs() automounter semantics regression
[deliverable/linux.git] / fs / udf / udf_i.h
CommitLineData
15aebd28
CH
1#ifndef _UDF_I_H
2#define _UDF_I_H
3
4d0fb621
AIB
4/*
5 * The i_data_sem and i_mutex serve for protection of allocation information
6 * of a regular files and symlinks. This includes all extents belonging to
7 * the file/symlink, a fact whether data are in-inode or in external data
8 * blocks, preallocation, goal block information... When extents are read,
9 * i_mutex or i_data_sem must be held (for reading is enough in case of
10 * i_data_sem). When extents are changed, i_data_sem must be held for writing
11 * and also i_mutex must be held.
12 *
13 * For directories i_mutex is used for all the necessary protection.
14 */
15
15aebd28
CH
16struct udf_inode_info {
17 struct timespec i_crtime;
18 /* Physical address of inode */
5ca4e4be 19 struct kernel_lb_addr i_location;
15aebd28
CH
20 __u64 i_unique;
21 __u32 i_lenEAttr;
22 __u32 i_lenAlloc;
23 __u64 i_lenExtents;
24 __u32 i_next_alloc_block;
25 __u32 i_next_alloc_goal;
26 unsigned i_alloc_type : 3;
d652eefb 27 unsigned i_efe : 1; /* extendedFileEntry */
28 unsigned i_use : 1; /* unallocSpaceEntry */
15aebd28
CH
29 unsigned i_strat4096 : 1;
30 unsigned reserved : 26;
31 union {
5ca4e4be
PE
32 struct short_ad *i_sad;
33 struct long_ad *i_lad;
15aebd28
CH
34 __u8 *i_data;
35 } i_ext;
4d0fb621 36 struct rw_semaphore i_data_sem;
15aebd28
CH
37 struct inode vfs_inode;
38};
1da177e4 39
1da177e4
LT
40static inline struct udf_inode_info *UDF_I(struct inode *inode)
41{
42 return list_entry(inode, struct udf_inode_info, vfs_inode);
43}
44
15aebd28 45#endif /* _UDF_I_H) */
This page took 0.541183 seconds and 5 git commands to generate.