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

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

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /fs/udf/udf_i.h (Version linux-6.12-rc7) and /fs/udf/udf_i.h (Version linux-5.6.19)


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

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

kernel.org | git.kernel.org | LWN.net | Project Home | 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.

sflogo.php