ACPI: thinkpad-acpi: prepare for device model conversion
[linux-2.6/linux-acpi-2.6/ibm-acpi-2.6.git] / fs / udf / udf_i.h
blobd7dbe6f3ba0ca8b0b5944c338501ec1b280bcace
1 #ifndef __LINUX_UDF_I_H
2 #define __LINUX_UDF_I_H
4 #include <linux/udf_fs_i.h>
5 static inline struct udf_inode_info *UDF_I(struct inode *inode)
7 return list_entry(inode, struct udf_inode_info, vfs_inode);
10 #define UDF_I_LOCATION(X) ( UDF_I(X)->i_location )
11 #define UDF_I_LENEATTR(X) ( UDF_I(X)->i_lenEAttr )
12 #define UDF_I_LENALLOC(X) ( UDF_I(X)->i_lenAlloc )
13 #define UDF_I_LENEXTENTS(X) ( UDF_I(X)->i_lenExtents )
14 #define UDF_I_UNIQUE(X) ( UDF_I(X)->i_unique )
15 #define UDF_I_ALLOCTYPE(X) ( UDF_I(X)->i_alloc_type )
16 #define UDF_I_EFE(X) ( UDF_I(X)->i_efe )
17 #define UDF_I_USE(X) ( UDF_I(X)->i_use )
18 #define UDF_I_STRAT4096(X) ( UDF_I(X)->i_strat4096 )
19 #define UDF_I_NEXT_ALLOC_BLOCK(X) ( UDF_I(X)->i_next_alloc_block )
20 #define UDF_I_NEXT_ALLOC_GOAL(X) ( UDF_I(X)->i_next_alloc_goal )
21 #define UDF_I_CRTIME(X) ( UDF_I(X)->i_crtime )
22 #define UDF_I_SAD(X) ( UDF_I(X)->i_ext.i_sad )
23 #define UDF_I_LAD(X) ( UDF_I(X)->i_ext.i_lad )
24 #define UDF_I_DATA(X) ( UDF_I(X)->i_ext.i_data )
26 #endif /* !defined(_LINUX_UDF_I_H) */