~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/fs/udf/udf_i.h

Version: ~ [ linux-5.3-rc5 ] ~ [ linux-5.2.9 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.67 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.139 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.189 ] ~ [ linux-4.8.17 ] ~ [ linux-4.7.10 ] ~ [ linux-4.6.7 ] ~ [ linux-4.5.7 ] ~ [ linux-4.4.189 ] ~ [ linux-4.3.6 ] ~ [ linux-4.2.8 ] ~ [ linux-4.1.52 ] ~ [ linux-4.0.9 ] ~ [ linux-3.19.8 ] ~ [ linux-3.18.140 ] ~ [ linux-3.17.8 ] ~ [ linux-3.16.72 ] ~ [ linux-3.15.10 ] ~ [ linux-3.14.79 ] ~ [ linux-3.13.11 ] ~ [ linux-3.12.74 ] ~ [ linux-3.11.10 ] ~ [ linux-3.10.108 ] ~ [ linux-3.9.11 ] ~ [ linux-3.8.13 ] ~ [ linux-3.7.10 ] ~ [ linux-3.6.11 ] ~ [ linux-3.5.7 ] ~ [ linux-3.4.113 ] ~ [ linux-3.3.8 ] ~ [ linux-3.2.102 ] ~ [ linux-3.1.10 ] ~ [ linux-3.0.101 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.5 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 #ifndef _UDF_I_H
  2 #define _UDF_I_H
  3 
  4 struct extent_position {
  5         struct buffer_head *bh;
  6         uint32_t offset;
  7         struct kernel_lb_addr block;
  8 };
  9 
 10 struct udf_ext_cache {
 11         /* Extent position */
 12         struct extent_position epos;
 13         /* Start logical offset in bytes */
 14         loff_t lstart;
 15 };
 16 
 17 /*
 18  * The i_data_sem and i_mutex serve for protection of allocation information
 19  * of a regular files and symlinks. This includes all extents belonging to
 20  * the file/symlink, a fact whether data are in-inode or in external data
 21  * blocks, preallocation, goal block information... When extents are read,
 22  * i_mutex or i_data_sem must be held (for reading is enough in case of
 23  * i_data_sem). When extents are changed, i_data_sem must be held for writing
 24  * and also i_mutex must be held.
 25  *
 26  * For directories i_mutex is used for all the necessary protection.
 27  */
 28 
 29 struct udf_inode_info {
 30         struct timespec         i_crtime;
 31         /* Physical address of inode */
 32         struct kernel_lb_addr           i_location;
 33         __u64                   i_unique;
 34         __u32                   i_lenEAttr;
 35         __u32                   i_lenAlloc;
 36         __u64                   i_lenExtents;
 37         __u32                   i_next_alloc_block;
 38         __u32                   i_next_alloc_goal;
 39         __u32                   i_checkpoint;
 40         unsigned                i_alloc_type : 3;
 41         unsigned                i_efe : 1;      /* extendedFileEntry */
 42         unsigned                i_use : 1;      /* unallocSpaceEntry */
 43         unsigned                i_strat4096 : 1;
 44         unsigned                reserved : 26;
 45         union {
 46                 struct short_ad *i_sad;
 47                 struct long_ad          *i_lad;
 48                 __u8            *i_data;
 49         } i_ext;
 50         struct rw_semaphore     i_data_sem;
 51         struct udf_ext_cache cached_extent;
 52         /* Spinlock for protecting extent cache */
 53         spinlock_t i_extent_cache_lock;
 54         struct inode vfs_inode;
 55 };
 56 
 57 static inline struct udf_inode_info *UDF_I(struct inode *inode)
 58 {
 59         return container_of(inode, struct udf_inode_info, vfs_inode);
 60 }
 61 
 62 #endif /* _UDF_I_H) */
 63 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | Wiki (Japanese) | Wiki (English) | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

osdn.jp