|
|
| version 1.160, 2007/02/07 02:51:56 | version 1.161, 2007/07/09 15:43:09 |
|---|---|
| Line 76 static char EXIT[] = "exit"; | Line 76 static char EXIT[] = "exit"; |
| */ | */ |
| STATIC void | STATIC void |
| xfs_bmbt_trace_enter( | xfs_bmbt_trace_enter( |
| char *func, | const char *func, |
| xfs_btree_cur_t *cur, | xfs_btree_cur_t *cur, |
| char *s, | char *s, |
| int type, | int type, |
| Line 117 xfs_bmbt_trace_enter( | Line 117 xfs_bmbt_trace_enter( |
| */ | */ |
| STATIC void | STATIC void |
| xfs_bmbt_trace_argbi( | xfs_bmbt_trace_argbi( |
| char *func, | const char *func, |
| xfs_btree_cur_t *cur, | xfs_btree_cur_t *cur, |
| xfs_buf_t *b, | xfs_buf_t *b, |
| int i, | int i, |
| Line 134 xfs_bmbt_trace_argbi( | Line 134 xfs_bmbt_trace_argbi( |
| */ | */ |
| STATIC void | STATIC void |
| xfs_bmbt_trace_argbii( | xfs_bmbt_trace_argbii( |
| char *func, | const char *func, |
| xfs_btree_cur_t *cur, | xfs_btree_cur_t *cur, |
| xfs_buf_t *b, | xfs_buf_t *b, |
| int i0, | int i0, |
| Line 153 xfs_bmbt_trace_argbii( | Line 153 xfs_bmbt_trace_argbii( |
| */ | */ |
| STATIC void | STATIC void |
| xfs_bmbt_trace_argfffi( | xfs_bmbt_trace_argfffi( |
| char *func, | const char *func, |
| xfs_btree_cur_t *cur, | xfs_btree_cur_t *cur, |
| xfs_dfiloff_t o, | xfs_dfiloff_t o, |
| xfs_dfsbno_t b, | xfs_dfsbno_t b, |
| Line 172 xfs_bmbt_trace_argfffi( | Line 172 xfs_bmbt_trace_argfffi( |
| */ | */ |
| STATIC void | STATIC void |
| xfs_bmbt_trace_argi( | xfs_bmbt_trace_argi( |
| char *func, | const char *func, |
| xfs_btree_cur_t *cur, | xfs_btree_cur_t *cur, |
| int i, | int i, |
| int line) | int line) |
| Line 188 xfs_bmbt_trace_argi( | Line 188 xfs_bmbt_trace_argi( |
| */ | */ |
| STATIC void | STATIC void |
| xfs_bmbt_trace_argifk( | xfs_bmbt_trace_argifk( |
| char *func, | const char *func, |
| xfs_btree_cur_t *cur, | xfs_btree_cur_t *cur, |
| int i, | int i, |
| xfs_fsblock_t f, | xfs_fsblock_t f, |
| Line 206 xfs_bmbt_trace_argifk( | Line 206 xfs_bmbt_trace_argifk( |
| */ | */ |
| STATIC void | STATIC void |
| xfs_bmbt_trace_argifr( | xfs_bmbt_trace_argifr( |
| char *func, | const char *func, |
| xfs_btree_cur_t *cur, | xfs_btree_cur_t *cur, |
| int i, | int i, |
| xfs_fsblock_t f, | xfs_fsblock_t f, |
| Line 235 xfs_bmbt_trace_argifr( | Line 235 xfs_bmbt_trace_argifr( |
| */ | */ |
| STATIC void | STATIC void |
| xfs_bmbt_trace_argik( | xfs_bmbt_trace_argik( |
| char *func, | const char *func, |
| xfs_btree_cur_t *cur, | xfs_btree_cur_t *cur, |
| int i, | int i, |
| xfs_bmbt_key_t *k, | xfs_bmbt_key_t *k, |
| Line 255 xfs_bmbt_trace_argik( | Line 255 xfs_bmbt_trace_argik( |
| */ | */ |
| STATIC void | STATIC void |
| xfs_bmbt_trace_cursor( | xfs_bmbt_trace_cursor( |
| char *func, | const char *func, |
| xfs_btree_cur_t *cur, | xfs_btree_cur_t *cur, |
| char *s, | char *s, |
| int line) | int line) |
| Line 274 xfs_bmbt_trace_cursor( | Line 274 xfs_bmbt_trace_cursor( |
| } | } |
| #define XFS_BMBT_TRACE_ARGBI(c,b,i) \ | #define XFS_BMBT_TRACE_ARGBI(c,b,i) \ |
| xfs_bmbt_trace_argbi(fname, c, b, i, __LINE__) | xfs_bmbt_trace_argbi(__FUNCTION__, c, b, i, __LINE__) |
| #define XFS_BMBT_TRACE_ARGBII(c,b,i,j) \ | #define XFS_BMBT_TRACE_ARGBII(c,b,i,j) \ |
| xfs_bmbt_trace_argbii(fname, c, b, i, j, __LINE__) | xfs_bmbt_trace_argbii(__FUNCTION__, c, b, i, j, __LINE__) |
| #define XFS_BMBT_TRACE_ARGFFFI(c,o,b,i,j) \ | #define XFS_BMBT_TRACE_ARGFFFI(c,o,b,i,j) \ |
| xfs_bmbt_trace_argfffi(fname, c, o, b, i, j, __LINE__) | xfs_bmbt_trace_argfffi(__FUNCTION__, c, o, b, i, j, __LINE__) |
| #define XFS_BMBT_TRACE_ARGI(c,i) \ | #define XFS_BMBT_TRACE_ARGI(c,i) \ |
| xfs_bmbt_trace_argi(fname, c, i, __LINE__) | xfs_bmbt_trace_argi(__FUNCTION__, c, i, __LINE__) |
| #define XFS_BMBT_TRACE_ARGIFK(c,i,f,s) \ | #define XFS_BMBT_TRACE_ARGIFK(c,i,f,s) \ |
| xfs_bmbt_trace_argifk(fname, c, i, f, s, __LINE__) | xfs_bmbt_trace_argifk(__FUNCTION__, c, i, f, s, __LINE__) |
| #define XFS_BMBT_TRACE_ARGIFR(c,i,f,r) \ | #define XFS_BMBT_TRACE_ARGIFR(c,i,f,r) \ |
| xfs_bmbt_trace_argifr(fname, c, i, f, r, __LINE__) | xfs_bmbt_trace_argifr(__FUNCTION__, c, i, f, r, __LINE__) |
| #define XFS_BMBT_TRACE_ARGIK(c,i,k) \ | #define XFS_BMBT_TRACE_ARGIK(c,i,k) \ |
| xfs_bmbt_trace_argik(fname, c, i, k, __LINE__) | xfs_bmbt_trace_argik(__FUNCTION__, c, i, k, __LINE__) |
| #define XFS_BMBT_TRACE_CURSOR(c,s) \ | #define XFS_BMBT_TRACE_CURSOR(c,s) \ |
| xfs_bmbt_trace_cursor(fname, c, s, __LINE__) | xfs_bmbt_trace_cursor(__FUNCTION__, c, s, __LINE__) |
| #else | #else |
| #define XFS_BMBT_TRACE_ARGBI(c,b,i) | #define XFS_BMBT_TRACE_ARGBI(c,b,i) |
| #define XFS_BMBT_TRACE_ARGBII(c,b,i,j) | #define XFS_BMBT_TRACE_ARGBII(c,b,i,j) |
| Line 318 xfs_bmbt_delrec( | Line 318 xfs_bmbt_delrec( |
| xfs_fsblock_t bno; /* fs-relative block number */ | xfs_fsblock_t bno; /* fs-relative block number */ |
| xfs_buf_t *bp; /* buffer for block */ | xfs_buf_t *bp; /* buffer for block */ |
| int error; /* error return value */ | int error; /* error return value */ |
| #ifdef XFS_BMBT_TRACE | |
| static char fname[] = "xfs_bmbt_delrec"; | |
| #endif | |
| int i; /* loop counter */ | int i; /* loop counter */ |
| int j; /* temp state */ | int j; /* temp state */ |
| xfs_bmbt_key_t key; /* bmap btree key */ | xfs_bmbt_key_t key; /* bmap btree key */ |
| Line 694 xfs_bmbt_insrec( | Line 691 xfs_bmbt_insrec( |
| xfs_bmbt_block_t *block; /* bmap btree block */ | xfs_bmbt_block_t *block; /* bmap btree block */ |
| xfs_buf_t *bp; /* buffer for block */ | xfs_buf_t *bp; /* buffer for block */ |
| int error; /* error return value */ | int error; /* error return value */ |
| #ifdef XFS_BMBT_TRACE | |
| static char fname[] = "xfs_bmbt_insrec"; | |
| #endif | |
| int i; /* loop index */ | int i; /* loop index */ |
| xfs_bmbt_key_t key; /* bmap btree key */ | xfs_bmbt_key_t key; /* bmap btree key */ |
| xfs_bmbt_key_t *kp=NULL; /* pointer to bmap btree key */ | xfs_bmbt_key_t *kp=NULL; /* pointer to bmap btree key */ |
| Line 881 xfs_bmbt_killroot( | Line 875 xfs_bmbt_killroot( |
| #ifdef DEBUG | #ifdef DEBUG |
| int error; | int error; |
| #endif | #endif |
| #ifdef XFS_BMBT_TRACE | |
| static char fname[] = "xfs_bmbt_killroot"; | |
| #endif | |
| int i; | int i; |
| xfs_bmbt_key_t *kp; | xfs_bmbt_key_t *kp; |
| xfs_inode_t *ip; | xfs_inode_t *ip; |
| Line 973 xfs_bmbt_log_keys( | Line 964 xfs_bmbt_log_keys( |
| int kfirst, | int kfirst, |
| int klast) | int klast) |
| { | { |
| #ifdef XFS_BMBT_TRACE | |
| static char fname[] = "xfs_bmbt_log_keys"; | |
| #endif | |
| xfs_trans_t *tp; | xfs_trans_t *tp; |
| XFS_BMBT_TRACE_CURSOR(cur, ENTRY); | XFS_BMBT_TRACE_CURSOR(cur, ENTRY); |
| Line 1012 xfs_bmbt_log_ptrs( | Line 1000 xfs_bmbt_log_ptrs( |
| int pfirst, | int pfirst, |
| int plast) | int plast) |
| { | { |
| #ifdef XFS_BMBT_TRACE | |
| static char fname[] = "xfs_bmbt_log_ptrs"; | |
| #endif | |
| xfs_trans_t *tp; | xfs_trans_t *tp; |
| XFS_BMBT_TRACE_CURSOR(cur, ENTRY); | XFS_BMBT_TRACE_CURSOR(cur, ENTRY); |
| Line 1055 xfs_bmbt_lookup( | Line 1040 xfs_bmbt_lookup( |
| xfs_daddr_t d; | xfs_daddr_t d; |
| xfs_sfiloff_t diff; | xfs_sfiloff_t diff; |
| int error; /* error return value */ | int error; /* error return value */ |
| #ifdef XFS_BMBT_TRACE | |
| static char fname[] = "xfs_bmbt_lookup"; | |
| #endif | |
| xfs_fsblock_t fsbno=0; | xfs_fsblock_t fsbno=0; |
| int high; | int high; |
| int i; | int i; |
| Line 1195 xfs_bmbt_lshift( | Line 1177 xfs_bmbt_lshift( |
| int *stat) /* success/failure */ | int *stat) /* success/failure */ |
| { | { |
| int error; /* error return value */ | int error; /* error return value */ |
| #ifdef XFS_BMBT_TRACE | |
| static char fname[] = "xfs_bmbt_lshift"; | |
| #endif | |
| #ifdef DEBUG | #ifdef DEBUG |
| int i; /* loop counter */ | int i; /* loop counter */ |
| #endif | #endif |
| Line 1331 xfs_bmbt_rshift( | Line 1310 xfs_bmbt_rshift( |
| int *stat) /* success/failure */ | int *stat) /* success/failure */ |
| { | { |
| int error; /* error return value */ | int error; /* error return value */ |
| #ifdef XFS_BMBT_TRACE | |
| static char fname[] = "xfs_bmbt_rshift"; | |
| #endif | |
| int i; /* loop counter */ | int i; /* loop counter */ |
| xfs_bmbt_key_t key; /* bmap btree key */ | xfs_bmbt_key_t key; /* bmap btree key */ |
| xfs_buf_t *lbp; /* left buffer pointer */ | xfs_buf_t *lbp; /* left buffer pointer */ |
| Line 1492 xfs_bmbt_split( | Line 1468 xfs_bmbt_split( |
| { | { |
| xfs_alloc_arg_t args; /* block allocation args */ | xfs_alloc_arg_t args; /* block allocation args */ |
| int error; /* error return value */ | int error; /* error return value */ |
| #ifdef XFS_BMBT_TRACE | |
| static char fname[] = "xfs_bmbt_split"; | |
| #endif | |
| int i; /* loop counter */ | int i; /* loop counter */ |
| xfs_fsblock_t lbno; /* left sibling block number */ | xfs_fsblock_t lbno; /* left sibling block number */ |
| xfs_buf_t *lbp; /* left buffer pointer */ | xfs_buf_t *lbp; /* left buffer pointer */ |
| Line 1641 xfs_bmbt_updkey( | Line 1614 xfs_bmbt_updkey( |
| #ifdef DEBUG | #ifdef DEBUG |
| int error; | int error; |
| #endif | #endif |
| #ifdef XFS_BMBT_TRACE | |
| static char fname[] = "xfs_bmbt_updkey"; | |
| #endif | |
| xfs_bmbt_key_t *kp; | xfs_bmbt_key_t *kp; |
| int ptr; | int ptr; |
| Line 1712 xfs_bmbt_decrement( | Line 1682 xfs_bmbt_decrement( |
| xfs_bmbt_block_t *block; | xfs_bmbt_block_t *block; |
| xfs_buf_t *bp; | xfs_buf_t *bp; |
| int error; /* error return value */ | int error; /* error return value */ |
| #ifdef XFS_BMBT_TRACE | |
| static char fname[] = "xfs_bmbt_decrement"; | |
| #endif | |
| xfs_fsblock_t fsbno; | xfs_fsblock_t fsbno; |
| int lev; | int lev; |
| xfs_mount_t *mp; | xfs_mount_t *mp; |
| Line 1785 xfs_bmbt_delete( | Line 1752 xfs_bmbt_delete( |
| int *stat) /* success/failure */ | int *stat) /* success/failure */ |
| { | { |
| int error; /* error return value */ | int error; /* error return value */ |
| #ifdef XFS_BMBT_TRACE | |
| static char fname[] = "xfs_bmbt_delete"; | |
| #endif | |
| int i; | int i; |
| int level; | int level; |
| Line 2000 xfs_bmbt_increment( | Line 1964 xfs_bmbt_increment( |
| xfs_bmbt_block_t *block; | xfs_bmbt_block_t *block; |
| xfs_buf_t *bp; | xfs_buf_t *bp; |
| int error; /* error return value */ | int error; /* error return value */ |
| #ifdef XFS_BMBT_TRACE | |
| static char fname[] = "xfs_bmbt_increment"; | |
| #endif | |
| xfs_fsblock_t fsbno; | xfs_fsblock_t fsbno; |
| int lev; | int lev; |
| xfs_mount_t *mp; | xfs_mount_t *mp; |
| Line 2080 xfs_bmbt_insert( | Line 2041 xfs_bmbt_insert( |
| int *stat) /* success/failure */ | int *stat) /* success/failure */ |
| { | { |
| int error; /* error return value */ | int error; /* error return value */ |
| #ifdef XFS_BMBT_TRACE | |
| static char fname[] = "xfs_bmbt_insert"; | |
| #endif | |
| int i; | int i; |
| int level; | int level; |
| xfs_fsblock_t nbno; | xfs_fsblock_t nbno; |
| Line 2142 xfs_bmbt_log_block( | Line 2100 xfs_bmbt_log_block( |
| int fields) | int fields) |
| { | { |
| int first; | int first; |
| #ifdef XFS_BMBT_TRACE | |
| static char fname[] = "xfs_bmbt_log_block"; | |
| #endif | |
| int last; | int last; |
| xfs_trans_t *tp; | xfs_trans_t *tp; |
| static const short offsets[] = { | static const short offsets[] = { |
| Line 2181 xfs_bmbt_log_recs( | Line 2136 xfs_bmbt_log_recs( |
| { | { |
| xfs_bmbt_block_t *block; | xfs_bmbt_block_t *block; |
| int first; | int first; |
| #ifdef XFS_BMBT_TRACE | |
| static char fname[] = "xfs_bmbt_log_recs"; | |
| #endif | |
| int last; | int last; |
| xfs_bmbt_rec_t *rp; | xfs_bmbt_rec_t *rp; |
| xfs_trans_t *tp; | xfs_trans_t *tp; |
| Line 2245 xfs_bmbt_newroot( | Line 2197 xfs_bmbt_newroot( |
| xfs_bmbt_key_t *ckp; /* child key pointer */ | xfs_bmbt_key_t *ckp; /* child key pointer */ |
| xfs_bmbt_ptr_t *cpp; /* child ptr pointer */ | xfs_bmbt_ptr_t *cpp; /* child ptr pointer */ |
| int error; /* error return code */ | int error; /* error return code */ |
| #ifdef XFS_BMBT_TRACE | |
| static char fname[] = "xfs_bmbt_newroot"; | |
| #endif | |
| #ifdef DEBUG | #ifdef DEBUG |
| int i; /* loop counter */ | int i; /* loop counter */ |
| #endif | #endif |
| Line 2630 xfs_bmbt_update( | Line 2579 xfs_bmbt_update( |
| xfs_bmbt_block_t *block; | xfs_bmbt_block_t *block; |
| xfs_buf_t *bp; | xfs_buf_t *bp; |
| int error; | int error; |
| #ifdef XFS_BMBT_TRACE | |
| static char fname[] = "xfs_bmbt_update"; | |
| #endif | |
| xfs_bmbt_key_t key; | xfs_bmbt_key_t key; |
| int ptr; | int ptr; |
| xfs_bmbt_rec_t *rp; | xfs_bmbt_rec_t *rp; |