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

TOMOYO Linux Cross Reference
Linux/fs/btrfs/file-item.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/btrfs/file-item.h (Version linux-6.12-rc7) and /fs/btrfs/file-item.h (Version linux-4.12.14)


  1 /* SPDX-License-Identifier: GPL-2.0 */              1 
  2                                                   
  3 #ifndef BTRFS_FILE_ITEM_H                         
  4 #define BTRFS_FILE_ITEM_H                         
  5                                                   
  6 #include <linux/list.h>                           
  7 #include <uapi/linux/btrfs_tree.h>                
  8 #include "accessors.h"                            
  9                                                   
 10 struct extent_map;                                
 11 struct btrfs_file_extent_item;                    
 12 struct btrfs_fs_info;                             
 13 struct btrfs_path;                                
 14 struct btrfs_bio;                                 
 15 struct btrfs_trans_handle;                        
 16 struct btrfs_root;                                
 17 struct btrfs_ordered_sum;                         
 18 struct btrfs_path;                                
 19 struct btrfs_inode;                               
 20                                                   
 21 #define BTRFS_FILE_EXTENT_INLINE_DATA_START       
 22                 (offsetof(struct btrfs_file_ex    
 23                                                   
 24 static inline u32 BTRFS_MAX_INLINE_DATA_SIZE(c    
 25 {                                                 
 26         return BTRFS_MAX_ITEM_SIZE(info) - BTR    
 27 }                                                 
 28                                                   
 29 /*                                                
 30  * Return the number of bytes used by the item    
 31  * extent headers.  If a file is compressed on    
 32  * size.                                          
 33  */                                               
 34 static inline u32 btrfs_file_extent_inline_ite    
 35                                                   
 36                                                   
 37 {                                                 
 38         return btrfs_item_size(eb, nr) - BTRFS    
 39 }                                                 
 40                                                   
 41 static inline unsigned long btrfs_file_extent_    
 42                                 const struct b    
 43 {                                                 
 44         return (unsigned long)e + BTRFS_FILE_E    
 45 }                                                 
 46                                                   
 47 static inline u32 btrfs_file_extent_calc_inlin    
 48 {                                                 
 49         return BTRFS_FILE_EXTENT_INLINE_DATA_S    
 50 }                                                 
 51                                                   
 52 int btrfs_del_csums(struct btrfs_trans_handle     
 53                     struct btrfs_root *root, u    
 54 blk_status_t btrfs_lookup_bio_sums(struct btrf    
 55 int btrfs_insert_hole_extent(struct btrfs_tran    
 56                              struct btrfs_root    
 57                              u64 num_bytes);      
 58 int btrfs_lookup_file_extent(struct btrfs_tran    
 59                              struct btrfs_root    
 60                              struct btrfs_path    
 61                              u64 bytenr, int m    
 62 int btrfs_csum_file_blocks(struct btrfs_trans_    
 63                            struct btrfs_root *    
 64                            struct btrfs_ordere    
 65 blk_status_t btrfs_csum_one_bio(struct btrfs_b    
 66 blk_status_t btrfs_alloc_dummy_sum(struct btrf    
 67 int btrfs_lookup_csums_range(struct btrfs_root    
 68                              struct list_head     
 69                              bool nowait);        
 70 int btrfs_lookup_csums_list(struct btrfs_root     
 71                             struct list_head *    
 72 int btrfs_lookup_csums_bitmap(struct btrfs_roo    
 73                               u64 start, u64 e    
 74                               unsigned long *c    
 75 void btrfs_extent_item_to_extent_map(struct bt    
 76                                      const str    
 77                                      const str    
 78                                      struct ex    
 79 int btrfs_inode_clear_file_extent_range(struct    
 80                                         u64 le    
 81 int btrfs_inode_set_file_extent_range(struct b    
 82 void btrfs_inode_safe_disk_i_size_write(struct    
 83 u64 btrfs_file_extent_end(const struct btrfs_p    
 84                                                   
 85 #endif                                            
 86                                                   

~ [ 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