| /linux/fs/xfs/libxfs/ |
| A D | xfs_refcount.c | 347 xfs_agblock_t agbno, in xfs_refcount_split_extent() argument 368 if (rcext.rc_startblock == agbno || xfs_refc_next(&rcext) <= agbno) in xfs_refcount_split_extent() 373 &rcext, agbno); in xfs_refcount_split_extent() 852 agbno, aglen); in xfs_refcount_merge_extents() 1048 xfs_agblock_t agbno, in xfs_refcount_adjust() argument 1058 *new_agbno = agbno; in xfs_refcount_adjust() 1062 agbno, aglen); in xfs_refcount_adjust() 1065 agbno, aglen); in xfs_refcount_adjust() 1300 agbno, aglen); in xfs_refcount_find_shared() 1586 agbno, aglen); in __xfs_refcount_cow_alloc() [all …]
|
| A D | xfs_alloc.c | 937 args->agbno = acur->bno; in xfs_alloc_cur_finish() 988 if (bno > args->agbno) { in xfs_alloc_cntbt_iter() 1256 if (tbno > args->agbno) in xfs_alloc_ag_vextent_exact() 1271 - args->agbno; in xfs_alloc_ag_vextent_exact() 1299 args->agbno = NULLAGBLOCK; in xfs_alloc_ag_vextent_exact() 1847 args->agbno = rbno; in xfs_alloc_ag_vextent_size() 2332 xfs_agblock_t agbno, in xfs_free_agfl_block() argument 2456 xfs_fsblock_t agbno, in xfs_defer_agfl_block() argument 2492 xfs_agblock_t agbno; in __xfs_free_extent_later() local 2703 targs.agbno = 0; in xfs_alloc_fix_freelist() [all …]
|
| A D | xfs_ialloc.c | 266 xfs_agblock_t agbno, in xfs_ialloc_inode_init() argument 327 d = XFS_AGB_TO_DADDR(mp, agno, agbno + in xfs_ialloc_inode_init() 417 xfs_agblock_t agbno; in xfs_align_sparse_ino() local 422 mod = agbno % mp->m_sb.sb_inoalignmt; in xfs_align_sparse_ino() 1824 xfs_agblock_t agbno; in xfs_difree_inode_chunk() local 2163 if (agbno >= mp->m_sb.sb_agblocks) { in xfs_difree() 2207 xfs_agblock_t agbno, in xfs_imap_lookup() argument 2257 *offset_agbno = agbno - *chunk_agbno; in xfs_imap_lookup() 2305 if (agbno >= mp->m_sb.sb_agblocks) { in xfs_imap() 2360 chunk_agbno = agbno - offset_agbno; in xfs_imap() [all …]
|
| A D | xfs_types.c | 37 xfs_agblock_t agbno) in xfs_verify_agbno() argument 42 if (agbno >= eoag) in xfs_verify_agbno() 44 if (agbno <= XFS_AGFL_BLOCK(mp)) in xfs_verify_agbno()
|
| A D | xfs_refcount.h | 52 xfs_agblock_t agbno, xfs_extlen_t aglen, xfs_agblock_t *fbno,
|
| A D | xfs_ialloc.h | 102 xfs_agnumber_t agno, xfs_agblock_t agbno,
|
| /linux/fs/xfs/scrub/ |
| A D | agheader.c | 31 xfs_agblock_t agbno; in xchk_superblock_xref() local 37 agbno = XFS_SB_BLOCK(mp); in xchk_superblock_xref() 395 xfs_agblock_t agbno; in xchk_agf_xref_cntbt() local 496 xfs_agblock_t agbno; in xchk_agf_xref() local 501 agbno = XFS_AGF_BLOCK(mp); in xchk_agf_xref() 526 xfs_agblock_t agbno; in xchk_agf() local 623 xfs_agblock_t agbno) in xchk_agfl_block_xref() argument 638 xfs_agblock_t agbno, in xchk_agfl_block() argument 676 xfs_agblock_t agbno; in xchk_agfl_xref() local 826 xfs_agblock_t agbno; in xchk_agi_xref() local [all …]
|
| A D | alloc.c | 38 xfs_agblock_t agbno, in xchk_allocbt_xref_other() argument 54 error = xfs_alloc_lookup_le(*pcur, agbno, len, &has_otherrec); in xchk_allocbt_xref_other() 70 if (fbno != agbno || flen != len) in xchk_allocbt_xref_other() 78 xfs_agblock_t agbno, in xchk_allocbt_xref() argument 84 xchk_allocbt_xref_other(sc, agbno, len); in xchk_allocbt_xref() 85 xchk_xref_is_not_inode_chunk(sc, agbno, len); in xchk_allocbt_xref() 86 xchk_xref_has_no_owner(sc, agbno, len); in xchk_allocbt_xref() 87 xchk_xref_is_not_shared(sc, agbno, len); in xchk_allocbt_xref() 144 xfs_agblock_t agbno, in xchk_xref_is_used_space() argument 153 error = xfs_alloc_has_record(sc->sa.bno_cur, agbno, len, &is_freesp); in xchk_xref_is_used_space()
|
| A D | ialloc.c | 86 xfs_agblock_t agbno, in xchk_iallocbt_chunk_xref() argument 92 xchk_xref_is_used_space(sc, agbno, len); in xchk_iallocbt_chunk_xref() 94 xchk_xref_is_owned_by(sc, agbno, len, &XFS_RMAP_OINFO_INODES); in xchk_iallocbt_chunk_xref() 95 xchk_xref_is_not_shared(sc, agbno, len); in xchk_iallocbt_chunk_xref() 218 xfs_agblock_t agbno; in xchk_iallocbt_check_cluster() local 245 imap.im_blkno = XFS_AGB_TO_DADDR(mp, agno, agbno); in xchk_iallocbt_check_cluster() 270 xchk_xref_is_not_owned_by(bs->sc, agbno, in xchk_iallocbt_check_cluster() 623 xfs_agblock_t agbno, in xchk_xref_inode_check() argument 645 xfs_agblock_t agbno, in xchk_xref_is_not_inode_chunk() argument 656 xfs_agblock_t agbno, in xchk_xref_is_inode_chunk() argument [all …]
|
| A D | trace.h | 210 __field(xfs_agblock_t, agbno) 224 __entry->agbno, 666 TP_ARGS(mp, agno, agbno, len), 676 __entry->agbno = agbno; 682 __entry->agbno, 710 __entry->agbno = agbno; 719 __entry->agbno, 775 __entry->agbno = agbno; 781 __entry->agbno, 798 __entry->agbno = agbno; [all …]
|
| A D | scrub.h | 142 void xchk_xref_is_used_space(struct xfs_scrub *sc, xfs_agblock_t agbno, 144 void xchk_xref_is_not_inode_chunk(struct xfs_scrub *sc, xfs_agblock_t agbno, 146 void xchk_xref_is_inode_chunk(struct xfs_scrub *sc, xfs_agblock_t agbno, 148 void xchk_xref_is_owned_by(struct xfs_scrub *sc, xfs_agblock_t agbno, 150 void xchk_xref_is_not_owned_by(struct xfs_scrub *sc, xfs_agblock_t agbno, 152 void xchk_xref_has_no_owner(struct xfs_scrub *sc, xfs_agblock_t agbno,
|
| A D | repair.c | 498 xfs_agblock_t agbno) in xrep_put_freelist() argument 519 agbno, 0); in xrep_put_freelist() 522 xfs_extent_busy_insert(sc->tp, sc->sa.pag, agbno, 1, in xrep_put_freelist() 539 xfs_agblock_t agbno; in xrep_reap_block() local 544 agbno = XFS_FSB_TO_AGBNO(sc->mp, fsbno); in xrep_reap_block() 583 error = xrep_put_freelist(sc, agbno); in xrep_reap_block() 672 xfs_agblock_t *agbno = priv; in xrep_findroot_agfl_walk() local 674 return (*agbno == bno) ? -ECANCELED : 0; in xrep_findroot_agfl_walk() 683 xfs_agblock_t agbno, in xrep_findroot_block() argument 703 xrep_findroot_agfl_walk, &agbno); in xrep_findroot_block() [all …]
|
| A D | bmap.c | 105 xfs_agblock_t agbno, in xchk_bmap_get_rmap() argument 170 xfs_agblock_t agbno) in xchk_bmap_xref_rmap() argument 190 if (rmap.rm_startblock > agbno || in xchk_bmap_xref_rmap() 191 agbno + irec->br_blockcount > rmap_end) in xchk_bmap_xref_rmap() 255 xfs_agblock_t agbno; in xchk_bmap_iextent_xref() local 260 agbno = XFS_FSB_TO_AGBNO(mp, irec->br_startblock); in xchk_bmap_iextent_xref() 268 xchk_xref_is_used_space(info->sc, agbno, len); in xchk_bmap_iextent_xref() 269 xchk_xref_is_not_inode_chunk(info->sc, agbno, len); in xchk_bmap_iextent_xref() 270 xchk_bmap_xref_rmap(info, irec, agbno); in xchk_bmap_iextent_xref() 277 xchk_xref_is_not_shared(info->sc, agbno, in xchk_bmap_iextent_xref() [all …]
|
| A D | refcount.c | 317 xfs_agblock_t agbno, in xchk_refcountbt_xref() argument 324 xchk_xref_is_used_space(sc, agbno, len); in xchk_refcountbt_xref() 325 xchk_xref_is_not_inode_chunk(sc, agbno, len); in xchk_refcountbt_xref() 326 xchk_refcountbt_xref_rmap(sc, agbno, len, refcount); in xchk_refcountbt_xref() 424 xfs_agblock_t agbno, in xchk_xref_is_cow_staging() argument 437 agbno + XFS_REFC_COW_START, &has_refcount); in xchk_xref_is_cow_staging() 470 xfs_agblock_t agbno, in xchk_xref_is_not_shared() argument 479 error = xfs_refcount_has_record(sc->sa.refc_cur, agbno, len, &shared); in xchk_xref_is_not_shared()
|
| A D | rmap.c | 69 xfs_agblock_t agbno = irec->rm_startblock; in xchk_rmapbt_xref() local 75 xchk_xref_is_used_space(sc, agbno, len); in xchk_rmapbt_xref() 77 xchk_xref_is_inode_chunk(sc, agbno, len); in xchk_rmapbt_xref() 79 xchk_xref_is_not_inode_chunk(sc, agbno, len); in xchk_rmapbt_xref()
|
| A D | inode.c | 525 xfs_agblock_t agbno; in xchk_inode_xref() local 532 agbno = XFS_INO_TO_AGBNO(sc->mp, ino); in xchk_inode_xref() 535 if (!xchk_xref_process_error(sc, agno, agbno, &error)) in xchk_inode_xref() 538 xchk_xref_is_used_space(sc, agbno, 1); in xchk_inode_xref() 540 xchk_xref_is_owned_by(sc, agbno, 1, &XFS_RMAP_OINFO_INODES); in xchk_inode_xref() 541 xchk_xref_is_not_shared(sc, agbno, 1); in xchk_inode_xref()
|
| A D | agheader_repair.c | 92 xfs_agblock_t agbno, in xrep_agf_check_agfl_block() argument 97 if (!xfs_verify_agbno(mp, sc->sa.pag->pag_agno, agbno)) in xrep_agf_check_agfl_block() 582 xfs_agblock_t agbno; in xrep_agfl_init_header() local 605 agbno = XFS_FSB_TO_AGBNO(mp, br->start); in xrep_agfl_init_header() 607 trace_xrep_agfl_insert(mp, sc->sa.pag->pag_agno, agbno, in xrep_agfl_init_header() 611 agfl_bno[fl_off] = cpu_to_be32(agbno); in xrep_agfl_init_header() 613 agbno++; in xrep_agfl_init_header()
|
| A D | btree.c | 363 xfs_agblock_t agbno; in xchk_btree_check_block_owner() local 373 agbno = xfs_daddr_to_agbno(bs->cur->bc_mp, daddr); in xchk_btree_check_block_owner() 383 xchk_xref_is_used_space(bs->sc, agbno, 1); in xchk_btree_check_block_owner() 392 xchk_xref_is_owned_by(bs->sc, agbno, 1, bs->oinfo); in xchk_btree_check_block_owner()
|
| /linux/fs/xfs/ |
| A D | xfs_icreate_item.c | 92 xfs_agblock_t agbno, in xfs_icreate_log() argument 108 icp->ic_format.icl_agbno = cpu_to_be32(agbno); in xfs_icreate_log() 151 xfs_agblock_t agbno; in xlog_recover_icreate_commit_pass2() local 176 agbno = be32_to_cpu(icl->icl_agbno); in xlog_recover_icreate_commit_pass2() 177 if (!agbno || agbno == NULLAGBLOCK || agbno >= mp->m_sb.sb_agblocks) { in xlog_recover_icreate_commit_pass2() 228 agbno + i * igeo->blocks_per_cluster); in xlog_recover_icreate_commit_pass2() 253 return xfs_ialloc_inode_init(mp, NULL, buffer_list, count, agno, agbno, in xlog_recover_icreate_commit_pass2()
|
| A D | xfs_trace.h | 1639 __entry->agbno = agbno; 1675 __entry->agbno = agbno; 1770 __entry->agbno = agbno; 2434 __entry->agbno = agbno; 2593 __entry->agbno = agbno; 2636 __entry->agbno = agbno; 2705 __entry->agbno = agbno; 2787 __entry->agbno = agbno; 2912 __entry->agbno = agbno; 2981 __entry->agbno = agbno; [all …]
|
| A D | xfs_reflink.c | 133 xfs_agblock_t agbno, in xfs_reflink_find_shared() argument 149 error = xfs_refcount_find_shared(cur, agbno, aglen, fbno, flen, in xfs_reflink_find_shared() 175 xfs_agblock_t agbno; in xfs_reflink_trim_around_shared() local 190 agbno = XFS_FSB_TO_AGBNO(ip->i_mount, irec->br_startblock); in xfs_reflink_trim_around_shared() 193 error = xfs_reflink_find_shared(ip->i_mount, NULL, agno, agbno, in xfs_reflink_trim_around_shared() 202 } else if (fbno == agbno) { in xfs_reflink_trim_around_shared() 219 irec->br_blockcount = fbno - agbno; in xfs_reflink_trim_around_shared() 1389 xfs_agblock_t agbno; in xfs_reflink_inode_has_shared_extents() local 1409 agbno = XFS_FSB_TO_AGBNO(mp, got.br_startblock); in xfs_reflink_inode_has_shared_extents() 1412 error = xfs_reflink_find_shared(mp, tp, agno, agbno, aglen, in xfs_reflink_inode_has_shared_extents()
|
| A D | xfs_extfree_item.c | 368 xfs_agblock_t agbno = XFS_FSB_TO_AGBNO(mp, in xfs_trans_free_extent() local 372 trace_xfs_bmap_free_deferred(tp->t_mountp, agno, 0, agbno, ext_len); in xfs_trans_free_extent() 542 xfs_agblock_t agbno; in xfs_agfl_free_finish_item() local 548 agbno = XFS_FSB_TO_AGBNO(mp, free->xefi_startblock); in xfs_agfl_free_finish_item() 551 trace_xfs_agfl_free_deferred(mp, agno, 0, agbno, free->xefi_blockcount); in xfs_agfl_free_finish_item() 555 error = xfs_free_agfl_block(tp, agno, agbno, agbp, &oinfo); in xfs_agfl_free_finish_item()
|
| A D | xfs_iwalk.c | 102 xfs_agblock_t agbno; in xfs_iwalk_ichunk_ra() local 106 agbno = XFS_AGINO_TO_AGBNO(mp, irec->ir_startino); in xfs_iwalk_ichunk_ra() 114 xfs_btree_reada_bufs(mp, pag->pag_agno, agbno, in xfs_iwalk_ichunk_ra() 118 agbno += igeo->blocks_per_cluster; in xfs_iwalk_ichunk_ra()
|
| A D | xfs_icreate_item.h | 18 xfs_agblock_t agbno, unsigned int count,
|
| A D | xfs_reflink.h | 20 xfs_agnumber_t agno, xfs_agblock_t agbno, xfs_extlen_t aglen,
|