/fs/xfs/libxfs/ |
D | xfs_refcount.c | 53 trace_xfs_refcount_lookup(cur->bc_mp, cur->bc_ag.pag->pag_agno, in xfs_refcount_lookup_le() 73 trace_xfs_refcount_lookup(cur->bc_mp, cur->bc_ag.pag->pag_agno, in xfs_refcount_lookup_ge() 93 trace_xfs_refcount_lookup(cur->bc_mp, cur->bc_ag.pag->pag_agno, in xfs_refcount_lookup_eq() 132 struct xfs_mount *mp = cur->bc_mp; in xfs_refcount_get_rec() 155 trace_xfs_refcount_get(cur->bc_mp, pag->pag_agno, irec); in xfs_refcount_get_rec() 182 trace_xfs_refcount_update(cur->bc_mp, cur->bc_ag.pag->pag_agno, irec); in xfs_refcount_update() 192 trace_xfs_refcount_update_error(cur->bc_mp, in xfs_refcount_update() 210 trace_xfs_refcount_insert(cur->bc_mp, cur->bc_ag.pag->pag_agno, irec); in xfs_refcount_insert() 220 if (XFS_IS_CORRUPT(cur->bc_mp, *i != 1)) { in xfs_refcount_insert() 227 trace_xfs_refcount_insert_error(cur->bc_mp, in xfs_refcount_insert() [all …]
|
D | xfs_refcount_btree.c | 31 return xfs_refcountbt_init_cursor(cur->bc_mp, cur->bc_tp, in xfs_refcountbt_dup_cursor() 69 args.mp = cur->bc_mp; in xfs_refcountbt_alloc_block() 71 args.fsbno = XFS_AGB_TO_FSB(cur->bc_mp, cur->bc_ag.pag->pag_agno, in xfs_refcountbt_alloc_block() 80 trace_xfs_refcountbt_alloc_block(cur->bc_mp, cur->bc_ag.pag->pag_agno, in xfs_refcountbt_alloc_block() 105 struct xfs_mount *mp = cur->bc_mp; in xfs_refcountbt_free_block() 111 trace_xfs_refcountbt_free_block(cur->bc_mp, cur->bc_ag.pag->pag_agno, in xfs_refcountbt_free_block() 112 XFS_FSB_TO_AGBNO(cur->bc_mp, fsbno), 1); in xfs_refcountbt_free_block() 128 return cur->bc_mp->m_refc_mnr[level != 0]; in xfs_refcountbt_get_minrecs() 136 return cur->bc_mp->m_refc_mxr[level != 0]; in xfs_refcountbt_get_maxrecs()
|
D | xfs_rmap.c | 100 trace_xfs_rmap_update(cur->bc_mp, cur->bc_ag.pag->pag_agno, in xfs_rmap_update() 111 trace_xfs_rmap_update_error(cur->bc_mp, in xfs_rmap_update() 128 trace_xfs_rmap_insert(rcur->bc_mp, rcur->bc_ag.pag->pag_agno, agbno, in xfs_rmap_insert() 134 if (XFS_IS_CORRUPT(rcur->bc_mp, i != 0)) { in xfs_rmap_insert() 147 if (XFS_IS_CORRUPT(rcur->bc_mp, i != 1)) { in xfs_rmap_insert() 153 trace_xfs_rmap_insert_error(rcur->bc_mp, in xfs_rmap_insert() 170 trace_xfs_rmap_delete(rcur->bc_mp, rcur->bc_ag.pag->pag_agno, agbno, in xfs_rmap_delete() 176 if (XFS_IS_CORRUPT(rcur->bc_mp, i != 1)) { in xfs_rmap_delete() 184 if (XFS_IS_CORRUPT(rcur->bc_mp, i != 1)) { in xfs_rmap_delete() 190 trace_xfs_rmap_delete_error(rcur->bc_mp, in xfs_rmap_delete() [all …]
|
D | xfs_ialloc_btree.c | 32 return M_IGEO(cur->bc_mp)->inobt_mnr[level != 0]; in xfs_inobt_get_minrecs() 39 return xfs_inobt_init_cursor(cur->bc_mp, cur->bc_tp, in xfs_inobt_dup_cursor() 81 if (!xfs_has_inobtcounts(cur->bc_mp)) in xfs_inobt_mod_blockcount() 105 args.mp = cur->bc_mp; in __xfs_inobt_alloc_block() 147 if (cur->bc_mp->m_finobt_nores) in xfs_finobt_alloc_block() 161 XFS_DADDR_TO_FSB(cur->bc_mp, xfs_buf_daddr(bp)), 1, in __xfs_inobt_free_block() 178 if (cur->bc_mp->m_finobt_nores) in xfs_finobt_free_block() 188 return M_IGEO(cur->bc_mp)->inobt_mxr[level != 0]; in xfs_inobt_get_maxrecs() 217 if (xfs_has_sparseinodes(cur->bc_mp)) { in xfs_inobt_init_rec_from_cur() 512 if (xfs_has_inobtcounts(cur->bc_mp)) { in xfs_inobt_commit_staged_btree() [all …]
|
D | xfs_rmap_btree.c | 56 return xfs_rmapbt_init_cursor(cur->bc_mp, cur->bc_tp, in xfs_rmapbt_dup_cursor() 98 trace_xfs_rmapbt_alloc_block(cur->bc_mp, pag->pag_agno, bno, 1); in xfs_rmapbt_alloc_block() 104 xfs_extent_busy_reuse(cur->bc_mp, pag, bno, 1, false); in xfs_rmapbt_alloc_block() 110 xfs_ag_resv_rmapbt_alloc(cur->bc_mp, pag->pag_agno); in xfs_rmapbt_alloc_block() 127 bno = xfs_daddr_to_agbno(cur->bc_mp, xfs_buf_daddr(bp)); in xfs_rmapbt_free_block() 128 trace_xfs_rmapbt_free_block(cur->bc_mp, pag->pag_agno, in xfs_rmapbt_free_block() 148 return cur->bc_mp->m_rmap_mnr[level != 0]; in xfs_rmapbt_get_minrecs() 156 return cur->bc_mp->m_rmap_mxr[level != 0]; in xfs_rmapbt_get_maxrecs()
|
D | xfs_alloc_btree.c | 29 return xfs_allocbt_init_cursor(cur->bc_mp, cur->bc_tp, in xfs_allocbt_dup_cursor() 73 atomic64_inc(&cur->bc_mp->m_allocbt_blks); in xfs_allocbt_alloc_block() 74 xfs_extent_busy_reuse(cur->bc_mp, cur->bc_ag.pag, bno, 1, false); in xfs_allocbt_alloc_block() 91 bno = xfs_daddr_to_agbno(cur->bc_mp, xfs_buf_daddr(bp)); in xfs_allocbt_free_block() 97 atomic64_dec(&cur->bc_mp->m_allocbt_blks); in xfs_allocbt_free_block() 146 rrp = XFS_ALLOC_REC_ADDR(cur->bc_mp, block, numrecs); in xfs_allocbt_update_lastrec() 169 return cur->bc_mp->m_alloc_mnr[level != 0]; in xfs_allocbt_get_minrecs() 177 return cur->bc_mp->m_alloc_mxr[level != 0]; in xfs_allocbt_get_maxrecs()
|
D | xfs_bmap_btree.c | 170 new = xfs_bmbt_init_cursor(cur->bc_mp, cur->bc_tp, in xfs_bmbt_dup_cursor() 208 args.mp = cur->bc_mp; in xfs_bmbt_alloc_block() 284 struct xfs_mount *mp = cur->bc_mp; in xfs_bmbt_free_block() 310 return xfs_bmbt_maxrecs(cur->bc_mp, in xfs_bmbt_get_minrecs() 314 return cur->bc_mp->m_bmap_dmnr[level != 0]; in xfs_bmbt_get_minrecs() 328 return xfs_bmbt_maxrecs(cur->bc_mp, in xfs_bmbt_get_maxrecs() 332 return cur->bc_mp->m_bmap_dmxr[level != 0]; in xfs_bmbt_get_maxrecs() 351 return cur->bc_mp->m_bmap_dmxr[level != 0]; in xfs_bmbt_get_dmaxrecs()
|
D | xfs_btree.c | 129 struct xfs_mount *mp = cur->bc_mp; in __xfs_btree_check_lblock() 172 struct xfs_mount *mp = cur->bc_mp; in xfs_btree_check_lblock() 196 struct xfs_mount *mp = cur->bc_mp; in __xfs_btree_check_sblock() 238 struct xfs_mount *mp = cur->bc_mp; in xfs_btree_check_sblock() 276 return xfs_verify_fsbno(cur->bc_mp, fsbno); in xfs_btree_check_lptr() 306 xfs_err(cur->bc_mp, in xfs_btree_check_ptr() 315 xfs_err(cur->bc_mp, in xfs_btree_check_ptr() 452 xfs_is_shutdown(cur->bc_mp) || error != 0); in xfs_btree_del_cursor() 477 mp = cur->bc_mp; in xfs_btree_dup_cursor() 940 xfs_btree_reada_bufl(cur->bc_mp, left, 1, in xfs_btree_readahead_lblock() [all …]
|
D | xfs_ialloc.c | 61 if (xfs_has_sparseinodes(cur->bc_mp)) { in xfs_inobt_update() 107 struct xfs_mount *mp = cur->bc_mp; in xfs_inobt_get_rec() 244 if (!xfs_is_shutdown(cur->bc_mp)) in xfs_check_agi_freecount() 926 if (XFS_IS_CORRUPT(cur->bc_mp, i != 1)) in xfs_ialloc_next_rec() 951 if (XFS_IS_CORRUPT(cur->bc_mp, i != 1)) in xfs_ialloc_get_rec() 1274 if (XFS_IS_CORRUPT(lcur->bc_mp, i != 1)) in xfs_dialloc_ag_finobt_near() 1298 if (XFS_IS_CORRUPT(lcur->bc_mp, j != 1)) { in xfs_dialloc_ag_finobt_near() 1304 if (XFS_IS_CORRUPT(lcur->bc_mp, i != 1 && j != 1)) { in xfs_dialloc_ag_finobt_near() 1360 if (XFS_IS_CORRUPT(cur->bc_mp, i != 1)) in xfs_dialloc_ag_finobt_newino() 1372 if (XFS_IS_CORRUPT(cur->bc_mp, i != 1)) in xfs_dialloc_ag_finobt_newino() [all …]
|
D | xfs_btree.h | 89 XFS_STATS_INC_OFF((cur)->bc_mp, (cur)->bc_statoff + __XBTS_ ## stat) 91 XFS_STATS_ADD_OFF((cur)->bc_mp, (cur)->bc_statoff + __XBTS_ ## stat, val) 231 struct xfs_mount *bc_mp; /* file system mount struct */ member 595 cur->bc_mp = mp; in xfs_btree_alloc_cursor()
|
D | xfs_btree_staging.c | 392 xfs_btree_init_block_int(cur->bc_mp, ifp->if_broot, in xfs_btree_bload_prep_block()
|
D | xfs_alloc.c | 250 struct xfs_mount *mp = cur->bc_mp; in xfs_alloc_get_rec() 460 mp = cnt_cur->bc_mp; in xfs_alloc_fixup_trees()
|
D | xfs_bmap.c | 565 if (XFS_IS_CORRUPT(cur->bc_mp, !xfs_btree_check_lptr(cur, cbno, 1))) in xfs_bmap_btree_to_extents() 1110 struct xfs_mount *mp = cur->bc_mp; in xfs_iread_bmbt_block()
|
/fs/xfs/scrub/ |
D | trace.c | 25 return XFS_DADDR_TO_FSB(cur->bc_mp, in xchk_btree_cur_fsbno() 30 return XFS_INO_TO_FSB(cur->bc_mp, cur->bc_ino.ip->i_ino); in xchk_btree_cur_fsbno()
|
D | trace.h | 349 __entry->agno = XFS_FSB_TO_AGNO(cur->bc_mp, fsbno); 350 __entry->bno = XFS_FSB_TO_AGBNO(cur->bc_mp, fsbno); 393 __entry->agno = XFS_FSB_TO_AGNO(cur->bc_mp, fsbno); 394 __entry->bno = XFS_FSB_TO_AGBNO(cur->bc_mp, fsbno); 432 __entry->agno = XFS_FSB_TO_AGNO(cur->bc_mp, fsbno); 433 __entry->bno = XFS_FSB_TO_AGBNO(cur->bc_mp, fsbno); 472 __entry->agno = XFS_FSB_TO_AGNO(cur->bc_mp, fsbno); 473 __entry->bno = XFS_FSB_TO_AGBNO(cur->bc_mp, fsbno); 510 __entry->agno = XFS_FSB_TO_AGNO(cur->bc_mp, fsbno); 511 __entry->bno = XFS_FSB_TO_AGBNO(cur->bc_mp, fsbno);
|
D | ialloc.c | 106 struct xfs_mount *mp = bs->cur->bc_mp; in xchk_iallocbt_chunk() 150 struct xfs_mount *mp = bs->cur->bc_mp; in xchk_iallocbt_check_cluster_ifree() 213 struct xfs_mount *mp = bs->cur->bc_mp; in xchk_iallocbt_check_cluster() 422 struct xfs_mount *mp = bs->cur->bc_mp; in xchk_iallocbt_rec()
|
D | bitmap.c | 263 fsb = XFS_DADDR_TO_FSB(cur->bc_mp, xfs_buf_daddr(bp)); in xbitmap_set_btcur_path() 287 fsbno = XFS_DADDR_TO_FSB(cur->bc_mp, xfs_buf_daddr(bp)); in xbitmap_collect_btblock()
|
D | rmap.c | 93 struct xfs_mount *mp = bs->cur->bc_mp; in xchk_rmapbt_rec()
|
D | btree.c | 372 agno = xfs_daddr_to_agno(bs->cur->bc_mp, daddr); in xchk_btree_check_block_owner() 373 agbno = xfs_daddr_to_agbno(bs->cur->bc_mp, daddr); in xchk_btree_check_block_owner()
|
D | bmap.c | 388 if (xfs_has_crc(bs->cur->bc_mp) && in xchk_bmapbt_rec()
|
D | agheader_repair.c | 470 fsb = XFS_AGB_TO_FSB(cur->bc_mp, cur->bc_ag.pag->pag_agno, in xrep_agfl_walk_rmap()
|
/fs/xfs/ |
D | xfs_notify_failure.c | 73 struct xfs_mount *mp = cur->bc_mp; in xfs_dax_failure_fn()
|
D | xfs_fsmap.c | 353 struct xfs_mount *mp = cur->bc_mp; in xfs_getfsmap_datadev_helper() 371 struct xfs_mount *mp = cur->bc_mp; in xfs_getfsmap_datadev_bnobt_helper()
|
D | xfs_trace.h | 2469 __entry->dev = cur->bc_mp->m_super->s_dev; 3898 __entry->dev = cur->bc_mp->m_super->s_dev; 3927 __entry->dev = cur->bc_mp->m_super->s_dev; 3929 __entry->agno = XFS_INO_TO_AGNO(cur->bc_mp, 3931 __entry->agino = XFS_INO_TO_AGINO(cur->bc_mp, 3966 __entry->dev = cur->bc_mp->m_super->s_dev; 4004 __entry->dev = cur->bc_mp->m_super->s_dev; 4012 __entry->agno = XFS_FSB_TO_AGNO(cur->bc_mp, fsb); 4013 __entry->agbno = XFS_FSB_TO_AGBNO(cur->bc_mp, fsb);
|