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

TOMOYO Linux Cross Reference
Linux/fs/btrfs/fs.c

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/fs.c (Version linux-6.12-rc7) and /fs/btrfs/fs.c (Version linux-4.12.14)


  1 // SPDX-License-Identifier: GPL-2.0                 1 
  2                                                   
  3 #include "messages.h"                             
  4 #include "ctree.h"                                
  5 #include "fs.h"                                   
  6 #include "accessors.h"                            
  7                                                   
  8 void __btrfs_set_fs_incompat(struct btrfs_fs_i    
  9                              const char *name)    
 10 {                                                 
 11         struct btrfs_super_block *disk_super;     
 12         u64 features;                             
 13                                                   
 14         disk_super = fs_info->super_copy;         
 15         features = btrfs_super_incompat_flags(    
 16         if (!(features & flag)) {                 
 17                 spin_lock(&fs_info->super_lock    
 18                 features = btrfs_super_incompa    
 19                 if (!(features & flag)) {         
 20                         features |= flag;         
 21                         btrfs_set_super_incomp    
 22                         btrfs_info(fs_info,       
 23                                 "setting incom    
 24                                 name, flag);      
 25                 }                                 
 26                 spin_unlock(&fs_info->super_lo    
 27                 set_bit(BTRFS_FS_FEATURE_CHANG    
 28         }                                         
 29 }                                                 
 30                                                   
 31 void __btrfs_clear_fs_incompat(struct btrfs_fs    
 32                                const char *nam    
 33 {                                                 
 34         struct btrfs_super_block *disk_super;     
 35         u64 features;                             
 36                                                   
 37         disk_super = fs_info->super_copy;         
 38         features = btrfs_super_incompat_flags(    
 39         if (features & flag) {                    
 40                 spin_lock(&fs_info->super_lock    
 41                 features = btrfs_super_incompa    
 42                 if (features & flag) {            
 43                         features &= ~flag;        
 44                         btrfs_set_super_incomp    
 45                         btrfs_info(fs_info,       
 46                                 "clearing inco    
 47                                 name, flag);      
 48                 }                                 
 49                 spin_unlock(&fs_info->super_lo    
 50                 set_bit(BTRFS_FS_FEATURE_CHANG    
 51         }                                         
 52 }                                                 
 53                                                   
 54 void __btrfs_set_fs_compat_ro(struct btrfs_fs_    
 55                               const char *name    
 56 {                                                 
 57         struct btrfs_super_block *disk_super;     
 58         u64 features;                             
 59                                                   
 60         disk_super = fs_info->super_copy;         
 61         features = btrfs_super_compat_ro_flags    
 62         if (!(features & flag)) {                 
 63                 spin_lock(&fs_info->super_lock    
 64                 features = btrfs_super_compat_    
 65                 if (!(features & flag)) {         
 66                         features |= flag;         
 67                         btrfs_set_super_compat    
 68                         btrfs_info(fs_info,       
 69                                 "setting compa    
 70                                 name, flag);      
 71                 }                                 
 72                 spin_unlock(&fs_info->super_lo    
 73                 set_bit(BTRFS_FS_FEATURE_CHANG    
 74         }                                         
 75 }                                                 
 76                                                   
 77 void __btrfs_clear_fs_compat_ro(struct btrfs_f    
 78                                 const char *na    
 79 {                                                 
 80         struct btrfs_super_block *disk_super;     
 81         u64 features;                             
 82                                                   
 83         disk_super = fs_info->super_copy;         
 84         features = btrfs_super_compat_ro_flags    
 85         if (features & flag) {                    
 86                 spin_lock(&fs_info->super_lock    
 87                 features = btrfs_super_compat_    
 88                 if (features & flag) {            
 89                         features &= ~flag;        
 90                         btrfs_set_super_compat    
 91                         btrfs_info(fs_info,       
 92                                 "clearing comp    
 93                                 name, flag);      
 94                 }                                 
 95                 spin_unlock(&fs_info->super_lo    
 96                 set_bit(BTRFS_FS_FEATURE_CHANG    
 97         }                                         
 98 }                                                 
 99                                                   

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