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

TOMOYO Linux Cross Reference
Linux/fs/jfs/jfs_filsys.h

Version: ~ [ linux-6.11.5 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.58 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.114 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.169 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.228 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.284 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.322 ] ~ [ 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.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /fs/jfs/jfs_filsys.h (Version linux-6.11.5) and /fs/jfs/jfs_filsys.h (Version policy-sample)


  1 /* SPDX-License-Identifier: GPL-2.0-or-later *      1 
  2 /*                                                
  3  *   Copyright (C) International Business Mach    
  4  */                                               
  5 #ifndef _H_JFS_FILSYS                             
  6 #define _H_JFS_FILSYS                             
  7                                                   
  8 /*                                                
  9  *      jfs_filsys.h                              
 10  *                                                
 11  * file system (implementation-dependent) cons    
 12  *                                                
 13  * refer to <limits.h> for system wide impleme    
 14  */                                               
 15                                                   
 16 /*                                                
 17  *       file system option (superblock flag)     
 18  */                                               
 19                                                   
 20 /* directory option */                            
 21 #define JFS_UNICODE     0x00000001      /* uni    
 22                                                   
 23 /* mount time flags for error handling */         
 24 #define JFS_ERR_REMOUNT_RO 0x00000002   /* rem    
 25 #define JFS_ERR_CONTINUE   0x00000004   /* con    
 26 #define JFS_ERR_PANIC      0x00000008   /* pan    
 27                                                   
 28 /* Quota support */                               
 29 #define JFS_USRQUOTA    0x00000010                
 30 #define JFS_GRPQUOTA    0x00000020                
 31                                                   
 32 /* mount time flag to disable journaling to di    
 33 #define JFS_NOINTEGRITY 0x00000040                
 34                                                   
 35 /* mount time flag to enable TRIM to ssd disks    
 36 #define JFS_DISCARD     0x00000080                
 37                                                   
 38 /* commit option */                               
 39 #define JFS_COMMIT      0x00000f00      /* com    
 40 #define JFS_GROUPCOMMIT 0x00000100      /* gro    
 41 #define JFS_LAZYCOMMIT  0x00000200      /* laz    
 42 #define JFS_TMPFS       0x00000400      /* tem    
 43                                          * do     
 44                                          * Nev    
 45                                          */       
 46                                                   
 47 /* log logical volume option */                   
 48 #define JFS_INLINELOG   0x00000800      /* inl    
 49 #define JFS_INLINEMOVE  0x00001000      /* inl    
 50                                                   
 51 /* Secondary aggregate inode table */             
 52 #define JFS_BAD_SAIT    0x00010000      /* cur    
 53                                                   
 54 /* sparse regular file support */                 
 55 #define JFS_SPARSE      0x00020000      /* spa    
 56                                                   
 57 /* DASD Limits          F226941 */                
 58 #define JFS_DASD_ENABLED 0x00040000     /* DAS    
 59 #define JFS_DASD_PRIME  0x00080000      /* Pri    
 60                                                   
 61 /* big endian flag */                             
 62 #define JFS_SWAP_BYTES  0x00100000      /* run    
 63                                                   
 64 /* Directory index */                             
 65 #define JFS_DIR_INDEX   0x00200000      /* Per    
 66                                                   
 67 /* platform options */                            
 68 #define JFS_LINUX       0x10000000      /* Lin    
 69 #define JFS_DFS         0x20000000      /* DCE    
 70 /*      Never implemented */                      
 71                                                   
 72 #define JFS_OS2         0x40000000      /* OS/    
 73 /*      case-insensitive name/directory suppor    
 74                                                   
 75 #define JFS_AIX         0x80000000      /* AIX    
 76                                                   
 77 /*                                                
 78  *      buffer cache configuration                
 79  */                                               
 80 /* page size */                                   
 81 #ifdef PSIZE                                      
 82 #undef PSIZE                                      
 83 #endif                                            
 84 #define PSIZE           4096    /* page size (    
 85 #define L2PSIZE         12      /* log2(PSIZE)    
 86 #define POFFSET         4095    /* offset with    
 87                                                   
 88 /* buffer page size */                            
 89 #define BPSIZE  PSIZE                             
 90                                                   
 91 /*                                                
 92  *      fs fundamental size                       
 93  *                                                
 94  * PSIZE >= file system block size >= PBSIZE >    
 95  */                                               
 96 #define PBSIZE          512     /* physical bl    
 97 #define L2PBSIZE        9       /* log2(PBSIZE    
 98                                                   
 99 #define DISIZE          512     /* on-disk ino    
100 #define L2DISIZE        9       /* log2(DISIZE    
101                                                   
102 #define IDATASIZE       256     /* inode inlin    
103 #define IXATTRSIZE      128     /* inode inlin    
104                                                   
105 #define XTPAGE_SIZE     4096                      
106 #define log2_PAGESIZE   12                        
107                                                   
108 #define IAG_SIZE        4096                      
109 #define IAG_EXTENT_SIZE 4096                      
110 #define INOSPERIAG      4096    /* number of d    
111 #define L2INOSPERIAG    12      /* l2 number o    
112 #define INOSPEREXT      32      /* number of d    
113 #define L2INOSPEREXT    5       /* l2 number o    
114 #define IXSIZE          (DISIZE * INOSPEREXT)     
115 #define INOSPERPAGE     8       /* number of d    
116 #define L2INOSPERPAGE   3       /* log2(INOSPE    
117                                                   
118 #define IAGFREELIST_LWM 64                        
119                                                   
120 #define INODE_EXTENT_SIZE       IXSIZE  /* ino    
121 #define NUM_INODE_PER_EXTENT    INOSPEREXT        
122 #define NUM_INODE_PER_IAG       INOSPERIAG        
123                                                   
124 #define MINBLOCKSIZE            512               
125 #define L2MINBLOCKSIZE          9                 
126 #define MAXBLOCKSIZE            4096              
127 #define L2MAXBLOCKSIZE          12                
128 #define MAXFILESIZE             ((s64)1 << 52)    
129                                                   
130 #define JFS_LINK_MAX            0xffffffff        
131                                                   
132 /* Minimum number of bytes supported for a JFS    
133 #define MINJFS                  (0x1000000)       
134 #define MINJFSTEXT              "16"              
135                                                   
136 /*                                                
137  * file system block size -> physical block si    
138  */                                               
139 #define LBOFFSET(x)     ((x) & (PBSIZE - 1))      
140 #define LBNUMBER(x)     ((x) >> L2PBSIZE)         
141 #define LBLK2PBLK(sb,b) ((b) << (sb->s_blocksi    
142 #define PBLK2LBLK(sb,b) ((b) >> (sb->s_blocksi    
143 /* size in byte -> last page number */            
144 #define SIZE2PN(size)   ( ((s64)((size) - 1))     
145 /* size in byte -> last file system block numb    
146 #define SIZE2BN(size, l2bsize) ( ((s64)((size)    
147                                                   
148 /*                                                
149  * fixed physical block address (physical bloc    
150  *                                                
151  * NOTE: since we can't guarantee a physical b    
152  *       these macros should be removed and th    
153  */                                               
154 #define SUPER1_B        64      /* primary sup    
155 #define AIMAP_B         (SUPER1_B + 8)  /* 1st    
156 #define AITBL_B         (AIMAP_B + 16)  /*        
157                                          * 1st    
158                                          */       
159 #define SUPER2_B        (AITBL_B + 32)  /* 2nd    
160 #define BMAP_B          (SUPER2_B + 8)  /* blo    
161                                                   
162 /*                                                
163  * SIZE_OF_SUPER defines the total amount of s    
164  * superblock.  This is not the same as the su    
165  * this space is not currently being used.        
166  */                                               
167 #define SIZE_OF_SUPER   PSIZE                     
168                                                   
169 /*                                                
170  * SIZE_OF_AG_TABLE defines the amount of spac    
171  */                                               
172 #define SIZE_OF_AG_TABLE        PSIZE             
173                                                   
174 /*                                                
175  * SIZE_OF_MAP_PAGE defines the amount of disk    
176  * the inode allocation map (to hold iag)         
177  */                                               
178 #define SIZE_OF_MAP_PAGE        PSIZE             
179                                                   
180 /*                                                
181  * fixed byte offset address                      
182  */                                               
183 #define SUPER1_OFF      0x8000  /* primary sup    
184 #define AIMAP_OFF       (SUPER1_OFF + SIZE_OF_    
185                                         /*        
186                                          * Con    
187                                          * fol    
188                                          */       
189 #define AITBL_OFF       (AIMAP_OFF + (SIZE_OF_    
190                                         /*        
191                                          * 1st    
192                                          */       
193 #define SUPER2_OFF      (AITBL_OFF + INODE_EXT    
194                                         /*        
195                                          * sec    
196                                          */       
197 #define BMAP_OFF        (SUPER2_OFF + SIZE_OF_    
198                                         /*        
199                                          * blo    
200                                          */       
201                                                   
202 /*                                                
203  * The following macro is used to indicate the    
204  * the front of an aggregate, in terms of phys    
205  * currently defined to be 32K.  This turns ou    
206  * superblock's address, since it directly fol    
207  */                                               
208 #define AGGR_RSVD_BLOCKS        SUPER1_B          
209                                                   
210 /*                                                
211  * The following macro is used to indicate the    
212  * front of an aggregate.  This value is curre    
213  * turns out to be the same as the primary sup    
214  * directly follows the reserved blocks.          
215  */                                               
216 #define AGGR_RSVD_BYTES SUPER1_OFF                
217                                                   
218 /*                                                
219  * The following macro defines the byte offset    
220  * the aggregate inode table.  This allows us     
221  * rest of the table.  Currently this value is    
222  */                                               
223 #define AGGR_INODE_TABLE_START  AITBL_OFF         
224                                                   
225 /*                                                
226  *      fixed reserved inode number               
227  */                                               
228 /* aggregate inode */                             
229 #define AGGR_RESERVED_I 0       /* aggregate i    
230 #define AGGREGATE_I     1       /* aggregate i    
231 #define BMAP_I          2       /* aggregate b    
232 #define LOG_I           3       /* aggregate i    
233 #define BADBLOCK_I      4       /* aggregate b    
234 #define FILESYSTEM_I    16      /* 1st/only fi    
235                                  * fileset ino    
236                                  */               
237                                                   
238 /* per fileset inode */                           
239 #define FILESET_RSVD_I  0       /* fileset ino    
240 #define FILESET_EXT_I   1       /* fileset ino    
241 #define ROOT_I          2       /* fileset roo    
242 #define ACL_I           3       /* fileset ACL    
243                                                   
244 #define FILESET_OBJECT_I 4      /* the first f    
245                                  * or director    
246                                  */               
247 #define FIRST_FILESET_INO 16    /* the first a    
248                                  * an inode.      
249                                  * inode in pa    
250                                  */               
251                                                   
252 /*                                                
253  *      directory configuration                   
254  */                                               
255 #define JFS_NAME_MAX    255                       
256 #define JFS_PATH_MAX    BPSIZE                    
257                                                   
258                                                   
259 /*                                                
260  *      file system state (superblock state)      
261  */                                               
262 #define FM_CLEAN 0x00000000     /* file system    
263 #define FM_MOUNT 0x00000001     /* file system    
264 #define FM_DIRTY 0x00000002     /* file system    
265                                  * when mounte    
266                                  * commit fail    
267                                  * fsck() must    
268                                  */               
269 #define FM_LOGREDO 0x00000004   /* log based r    
270                                  * fsck() must    
271                                  */               
272 #define FM_EXTENDFS 0x00000008  /* file system    
273 #define FM_STATE_MAX 0x0000000f /* max value o    
274                                                   
275 #endif                          /* _H_JFS_FILS    
276                                                   

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