Home
last modified time | relevance | path

Searched refs:bc_mp (Results 1 – 25 of 25) sorted by relevance

/linux-4.19.296/fs/xfs/libxfs/
Dxfs_refcount.c51 trace_xfs_refcount_lookup(cur->bc_mp, cur->bc_private.a.agno, bno, in xfs_refcount_lookup_le()
68 trace_xfs_refcount_lookup(cur->bc_mp, cur->bc_private.a.agno, bno, in xfs_refcount_lookup_ge()
85 trace_xfs_refcount_lookup(cur->bc_mp, cur->bc_private.a.agno, bno, in xfs_refcount_lookup_eq()
112 struct xfs_mount *mp = cur->bc_mp; in xfs_refcount_get_rec()
149 trace_xfs_refcount_get(cur->bc_mp, cur->bc_private.a.agno, irec); in xfs_refcount_get_rec()
174 trace_xfs_refcount_update(cur->bc_mp, cur->bc_private.a.agno, irec); in xfs_refcount_update()
180 trace_xfs_refcount_update_error(cur->bc_mp, in xfs_refcount_update()
198 trace_xfs_refcount_insert(cur->bc_mp, cur->bc_private.a.agno, irec); in xfs_refcount_insert()
205 XFS_WANT_CORRUPTED_GOTO(cur->bc_mp, *i == 1, out_error); in xfs_refcount_insert()
209 trace_xfs_refcount_insert_error(cur->bc_mp, in xfs_refcount_insert()
[all …]
Dxfs_refcount_btree.c29 return xfs_refcountbt_init_cursor(cur->bc_mp, cur->bc_tp, in xfs_refcountbt_dup_cursor()
42 struct xfs_perag *pag = xfs_perag_get(cur->bc_mp, seqno); in xfs_refcountbt_set_root()
69 args.mp = cur->bc_mp; in xfs_refcountbt_alloc_block()
71 args.fsbno = XFS_AGB_TO_FSB(cur->bc_mp, cur->bc_private.a.agno, in xfs_refcountbt_alloc_block()
80 trace_xfs_refcountbt_alloc_block(cur->bc_mp, cur->bc_private.a.agno, in xfs_refcountbt_alloc_block()
105 struct xfs_mount *mp = cur->bc_mp; in xfs_refcountbt_free_block()
112 trace_xfs_refcountbt_free_block(cur->bc_mp, cur->bc_private.a.agno, in xfs_refcountbt_free_block()
113 XFS_FSB_TO_AGBNO(cur->bc_mp, fsbno), 1); in xfs_refcountbt_free_block()
130 return cur->bc_mp->m_refc_mnr[level != 0]; in xfs_refcountbt_get_minrecs()
138 return cur->bc_mp->m_refc_mxr[level != 0]; in xfs_refcountbt_get_maxrecs()
[all …]
Dxfs_rmap_btree.c57 return xfs_rmapbt_init_cursor(cur->bc_mp, cur->bc_tp, in xfs_rmapbt_dup_cursor()
71 struct xfs_perag *pag = xfs_perag_get(cur->bc_mp, seqno); in xfs_rmapbt_set_root()
101 trace_xfs_rmapbt_alloc_block(cur->bc_mp, cur->bc_private.a.agno, in xfs_rmapbt_alloc_block()
108 xfs_extent_busy_reuse(cur->bc_mp, cur->bc_private.a.agno, bno, 1, in xfs_rmapbt_alloc_block()
116 xfs_ag_resv_rmapbt_alloc(cur->bc_mp, cur->bc_private.a.agno); in xfs_rmapbt_alloc_block()
132 bno = xfs_daddr_to_agbno(cur->bc_mp, XFS_BUF_ADDR(bp)); in xfs_rmapbt_free_block()
133 trace_xfs_rmapbt_free_block(cur->bc_mp, cur->bc_private.a.agno, in xfs_rmapbt_free_block()
145 xfs_ag_resv_rmapbt_free(cur->bc_mp, cur->bc_private.a.agno); in xfs_rmapbt_free_block()
155 return cur->bc_mp->m_rmap_mnr[level != 0]; in xfs_rmapbt_get_minrecs()
163 return cur->bc_mp->m_rmap_mxr[level != 0]; in xfs_rmapbt_get_maxrecs()
[all …]
Dxfs_alloc_btree.c28 return xfs_allocbt_init_cursor(cur->bc_mp, cur->bc_tp, in xfs_allocbt_dup_cursor()
43 struct xfs_perag *pag = xfs_perag_get(cur->bc_mp, seqno); in xfs_allocbt_set_root()
76 xfs_extent_busy_reuse(cur->bc_mp, cur->bc_private.a.agno, bno, 1, false); in xfs_allocbt_alloc_block()
95 bno = xfs_daddr_to_agbno(cur->bc_mp, XFS_BUF_ADDR(bp)); in xfs_allocbt_free_block()
150 rrp = XFS_ALLOC_REC_ADDR(cur->bc_mp, block, numrecs); in xfs_allocbt_update_lastrec()
163 pag = xfs_perag_get(cur->bc_mp, seqno); in xfs_allocbt_update_lastrec()
174 return cur->bc_mp->m_alloc_mnr[level != 0]; in xfs_allocbt_get_minrecs()
182 return cur->bc_mp->m_alloc_mxr[level != 0]; in xfs_allocbt_get_maxrecs()
498 cur->bc_mp = mp; in xfs_allocbt_init_cursor()
Dxfs_ialloc_btree.c31 return cur->bc_mp->m_inobt_mnr[level != 0]; in xfs_inobt_get_minrecs()
38 return xfs_inobt_init_cursor(cur->bc_mp, cur->bc_tp, in xfs_inobt_dup_cursor()
86 args.mp = cur->bc_mp; in __xfs_inobt_alloc_block()
127 if (cur->bc_mp->m_finobt_nores) in xfs_finobt_alloc_block()
143 XFS_DADDR_TO_FSB(cur->bc_mp, XFS_BUF_ADDR(bp)), 1, in __xfs_inobt_free_block()
160 if (cur->bc_mp->m_finobt_nores) in xfs_finobt_free_block()
170 return cur->bc_mp->m_inobt_mxr[level != 0]; in xfs_inobt_get_maxrecs()
199 if (xfs_sb_version_hassparseinodes(&cur->bc_mp->m_sb)) { in xfs_inobt_init_rec_from_cur()
418 cur->bc_mp = mp; in xfs_inobt_init_cursor()
Dxfs_rmap.c89 trace_xfs_rmap_update(cur->bc_mp, cur->bc_private.a.agno, in xfs_rmap_update()
100 trace_xfs_rmap_update_error(cur->bc_mp, in xfs_rmap_update()
117 trace_xfs_rmap_insert(rcur->bc_mp, rcur->bc_private.a.agno, agbno, in xfs_rmap_insert()
123 XFS_WANT_CORRUPTED_GOTO(rcur->bc_mp, i == 0, done); in xfs_rmap_insert()
133 XFS_WANT_CORRUPTED_GOTO(rcur->bc_mp, i == 1, done); in xfs_rmap_insert()
136 trace_xfs_rmap_insert_error(rcur->bc_mp, in xfs_rmap_insert()
153 trace_xfs_rmap_delete(rcur->bc_mp, rcur->bc_private.a.agno, agbno, in xfs_rmap_delete()
159 XFS_WANT_CORRUPTED_GOTO(rcur->bc_mp, i == 1, done); in xfs_rmap_delete()
164 XFS_WANT_CORRUPTED_GOTO(rcur->bc_mp, i == 1, done); in xfs_rmap_delete()
167 trace_xfs_rmap_delete_error(rcur->bc_mp, in xfs_rmap_delete()
[all …]
Dxfs_bmap_btree.c171 new = xfs_bmbt_init_cursor(cur->bc_mp, cur->bc_tp, in xfs_bmbt_dup_cursor()
209 args.mp = cur->bc_mp; in xfs_bmbt_alloc_block()
285 struct xfs_mount *mp = cur->bc_mp; in xfs_bmbt_free_block()
311 return xfs_bmbt_maxrecs(cur->bc_mp, in xfs_bmbt_get_minrecs()
315 return cur->bc_mp->m_bmap_dmnr[level != 0]; in xfs_bmbt_get_minrecs()
329 return xfs_bmbt_maxrecs(cur->bc_mp, in xfs_bmbt_get_maxrecs()
333 return cur->bc_mp->m_bmap_dmxr[level != 0]; in xfs_bmbt_get_maxrecs()
352 return cur->bc_mp->m_bmap_dmxr[level != 0]; in xfs_bmbt_get_dmaxrecs()
550 cur->bc_mp = mp; in xfs_bmbt_init_cursor()
Dxfs_btree.c66 struct xfs_mount *mp = cur->bc_mp; in __xfs_btree_check_lblock()
107 struct xfs_mount *mp = cur->bc_mp; in xfs_btree_check_lblock()
132 struct xfs_mount *mp = cur->bc_mp; in __xfs_btree_check_sblock()
171 struct xfs_mount *mp = cur->bc_mp; in xfs_btree_check_sblock()
210 return xfs_verify_fsbno(cur->bc_mp, fsbno); in xfs_btree_check_lptr()
222 return xfs_verify_agbno(cur->bc_mp, cur->bc_private.a.agno, agbno); in xfs_btree_check_sptr()
240 xfs_err(cur->bc_mp, in xfs_btree_check_ptr()
249 xfs_err(cur->bc_mp, in xfs_btree_check_ptr()
410 mp = cur->bc_mp; in xfs_btree_dup_cursor()
921 xfs_btree_reada_bufl(cur->bc_mp, left, 1, in xfs_btree_readahead_lblock()
[all …]
Dxfs_ialloc.c78 if (xfs_sb_version_hassparseinodes(&cur->bc_mp->m_sb)) { in xfs_inobt_update()
124 struct xfs_mount *mp = cur->bc_mp; in xfs_inobt_get_rec()
263 if (!XFS_FORCED_SHUTDOWN(cur->bc_mp)) in xfs_check_agi_freecount()
1076 XFS_WANT_CORRUPTED_RETURN(cur->bc_mp, i == 1); in xfs_ialloc_next_rec()
1100 XFS_WANT_CORRUPTED_RETURN(cur->bc_mp, i == 1); in xfs_ialloc_get_rec()
1412 XFS_WANT_CORRUPTED_RETURN(lcur->bc_mp, i == 1); in xfs_dialloc_ag_finobt_near()
1435 XFS_WANT_CORRUPTED_GOTO(lcur->bc_mp, j == 1, error_rcur); in xfs_dialloc_ag_finobt_near()
1438 XFS_WANT_CORRUPTED_GOTO(lcur->bc_mp, i == 1 || j == 1, error_rcur); in xfs_dialloc_ag_finobt_near()
1491 XFS_WANT_CORRUPTED_RETURN(cur->bc_mp, i == 1); in xfs_dialloc_ag_finobt_newino()
1502 XFS_WANT_CORRUPTED_RETURN(cur->bc_mp, i == 1); in xfs_dialloc_ag_finobt_newino()
[all …]
Dxfs_btree.h89 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)
195 struct xfs_mount *bc_mp; /* file system mount struct */ member
Dxfs_alloc.c218 struct xfs_mount *mp = cur->bc_mp; in xfs_alloc_get_rec()
431 mp = cnt_cur->bc_mp; in xfs_alloc_fixup_trees()
Dxfs_bmap.c617 XFS_WANT_CORRUPTED_RETURN(cur->bc_mp, in xfs_bmap_btree_to_extents()
/linux-4.19.296/fs/xfs/scrub/
Dtrace.c30 return XFS_DADDR_TO_FSB(cur->bc_mp, cur->bc_bufs[level]->b_bn); in xchk_btree_cur_fsbno()
33 return XFS_INO_TO_FSB(cur->bc_mp, cur->bc_private.b.ip->i_ino); in xchk_btree_cur_fsbno()
35 return XFS_AGB_TO_FSB(cur->bc_mp, cur->bc_private.a.agno, 0); in xchk_btree_cur_fsbno()
Dtrace.h275 __entry->agno = XFS_FSB_TO_AGNO(cur->bc_mp, fsbno);
276 __entry->bno = XFS_FSB_TO_AGBNO(cur->bc_mp, fsbno);
319 __entry->agno = XFS_FSB_TO_AGNO(cur->bc_mp, fsbno);
320 __entry->bno = XFS_FSB_TO_AGBNO(cur->bc_mp, fsbno);
358 __entry->agno = XFS_FSB_TO_AGNO(cur->bc_mp, fsbno);
359 __entry->bno = XFS_FSB_TO_AGBNO(cur->bc_mp, fsbno);
398 __entry->agno = XFS_FSB_TO_AGNO(cur->bc_mp, fsbno);
399 __entry->bno = XFS_FSB_TO_AGBNO(cur->bc_mp, fsbno);
436 __entry->agno = XFS_FSB_TO_AGNO(cur->bc_mp, fsbno);
437 __entry->bno = XFS_FSB_TO_AGBNO(cur->bc_mp, fsbno);
Dialloc.c105 struct xfs_mount *mp = bs->cur->bc_mp; in xchk_iallocbt_chunk()
140 struct xfs_mount *mp = bs->cur->bc_mp; in xchk_iallocbt_check_cluster_freemask()
191 struct xfs_mount *mp = bs->cur->bc_mp; in xchk_iallocbt_check_freemask()
274 struct xfs_mount *mp = bs->cur->bc_mp; in xchk_iallocbt_rec()
Dbitmap.c268 fsb = XFS_DADDR_TO_FSB(cur->bc_mp, bp->b_bn); in xfs_bitmap_set_btcur_path()
292 fsbno = XFS_DADDR_TO_FSB(cur->bc_mp, bp->b_bn); in xfs_bitmap_collect_btblock()
Dalloc.c103 struct xfs_mount *mp = bs->cur->bc_mp; in xchk_allocbt_rec()
Drmap.c102 struct xfs_mount *mp = bs->cur->bc_mp; in xchk_rmapbt_rec()
Dbtree.c378 agno = xfs_daddr_to_agno(bs->cur->bc_mp, daddr); in xchk_btree_check_block_owner()
379 agbno = xfs_daddr_to_agbno(bs->cur->bc_mp, daddr); in xchk_btree_check_block_owner()
Drefcount.c345 struct xfs_mount *mp = bs->cur->bc_mp; in xchk_refcountbt_rec()
Dbmap.c395 if (xfs_sb_version_hascrc(&bs->cur->bc_mp->m_sb) && in xchk_bmapbt_rec()
Dagheader_repair.c465 fsb = XFS_AGB_TO_FSB(cur->bc_mp, cur->bc_private.a.agno, in xrep_agfl_walk_rmap()
/linux-4.19.296/fs/xfs/
Dxfs_fsmap.c348 struct xfs_mount *mp = cur->bc_mp; in xfs_getfsmap_datadev_helper()
366 struct xfs_mount *mp = cur->bc_mp; in xfs_getfsmap_datadev_bnobt_helper()
Dxfs_itable.c219 XFS_WANT_CORRUPTED_RETURN(cur->bc_mp, stat == 1); in xfs_bulkstat_grab_ichunk()
Dxfs_trace.h2190 __entry->dev = cur->bc_mp->m_super->s_dev;