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

TOMOYO Linux Cross Reference
Linux/fs/xfs/scrub/newbt.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/xfs/scrub/newbt.h (Version linux-6.12-rc7) and /fs/xfs/scrub/newbt.h (Version linux-2.6.0)


  1 // SPDX-License-Identifier: GPL-2.0-or-later        1 
  2 /*                                                
  3  * Copyright (C) 2022-2023 Oracle.  All Rights    
  4  * Author: Darrick J. Wong <djwong@kernel.org>    
  5  */                                               
  6 #ifndef __XFS_SCRUB_NEWBT_H__                     
  7 #define __XFS_SCRUB_NEWBT_H__                     
  8                                                   
  9 struct xfs_alloc_arg;                             
 10                                                   
 11 struct xrep_newbt_resv {                          
 12         /* Link to list of extents that we've     
 13         struct list_head        list;             
 14                                                   
 15         struct xfs_perag        *pag;             
 16                                                   
 17         /* Auto-freeing this reservation if we    
 18         struct xfs_alloc_autoreap autoreap;       
 19                                                   
 20         /* AG block of the extent we reserved.    
 21         xfs_agblock_t           agbno;            
 22                                                   
 23         /* Length of the reservation. */          
 24         xfs_extlen_t            len;              
 25                                                   
 26         /* How much of this reservation has be    
 27         xfs_extlen_t            used;             
 28 };                                                
 29                                                   
 30 struct xrep_newbt {                               
 31         struct xfs_scrub        *sc;              
 32                                                   
 33         /* Custom allocation function, or NULL    
 34         int                     (*alloc_vexten    
 35                                                   
 36                                                   
 37                                                   
 38         /* List of extents that we've reserved    
 39         struct list_head        resv_list;        
 40                                                   
 41         /* Fake root for new btree. */            
 42         union {                                   
 43                 struct xbtree_afakeroot afake;    
 44                 struct xbtree_ifakeroot ifake;    
 45         };                                        
 46                                                   
 47         /* rmap owner of these blocks */          
 48         struct xfs_owner_info   oinfo;            
 49                                                   
 50         /* btree geometry for the bulk loader     
 51         struct xfs_btree_bload  bload;            
 52                                                   
 53         /* Allocation hint */                     
 54         xfs_fsblock_t           alloc_hint;       
 55                                                   
 56         /* per-ag reservation type */             
 57         enum xfs_ag_resv_type   resv;             
 58 };                                                
 59                                                   
 60 void xrep_newbt_init_bare(struct xrep_newbt *x    
 61 void xrep_newbt_init_ag(struct xrep_newbt *xnr    
 62                 const struct xfs_owner_info *o    
 63                 enum xfs_ag_resv_type resv);      
 64 int xrep_newbt_init_inode(struct xrep_newbt *x    
 65                 int whichfork, const struct xf    
 66 int xrep_newbt_alloc_blocks(struct xrep_newbt     
 67 int xrep_newbt_add_extent(struct xrep_newbt *x    
 68                 xfs_agblock_t agbno, xfs_extle    
 69 void xrep_newbt_cancel(struct xrep_newbt *xnr)    
 70 int xrep_newbt_commit(struct xrep_newbt *xnr);    
 71 int xrep_newbt_claim_block(struct xfs_btree_cu    
 72                 union xfs_btree_ptr *ptr);        
 73 unsigned int xrep_newbt_unused_blocks(struct x    
 74                                                   
 75 #endif /* __XFS_SCRUB_NEWBT_H__ */                
 76                                                   

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