Home
last modified time | relevance | path

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

12

/fs/xfs/libxfs/
Dxfs_refcount.c36 xfs_agblock_t agbno, xfs_extlen_t aglen);
38 xfs_agblock_t agbno, xfs_extlen_t aglen);
345 xfs_agblock_t agbno, in xfs_refcount_split_extent() argument
353 error = xfs_refcount_lookup_le(cur, agbno, &found_rec); in xfs_refcount_split_extent()
366 if (rcext.rc_startblock == agbno || xfs_refc_next(&rcext) <= agbno) in xfs_refcount_split_extent()
371 &rcext, agbno); in xfs_refcount_split_extent()
375 tmp.rc_startblock = agbno; in xfs_refcount_split_extent()
376 tmp.rc_blockcount -= (agbno - rcext.rc_startblock); in xfs_refcount_split_extent()
383 tmp.rc_blockcount = agbno - rcext.rc_startblock; in xfs_refcount_split_extent()
484 xfs_agblock_t *agbno, in xfs_refcount_merge_left_extent() argument
[all …]
Dxfs_alloc.c877 diff = xfs_alloc_compute_diff(args->agbno, args->len, in xfs_alloc_cur_check()
937 args->agbno = acur->bno; in xfs_alloc_cur_finish()
965 error = xfs_alloc_lookup_ge(cur, args->agbno, cur_len, &i); in xfs_alloc_cntbt_iter()
988 if (bno > args->agbno) { in xfs_alloc_cntbt_iter()
1079 *fbnop = args->agbno = fbno; in xfs_alloc_ag_vextent_small()
1105 args->agbno = NULLAGBLOCK; in xfs_alloc_ag_vextent_small()
1159 if (error || args->agbno == NULLAGBLOCK) in xfs_alloc_ag_vextent()
1165 ASSERT(args->agbno % args->alignment == 0); in xfs_alloc_ag_vextent()
1170 args->agbno, args->len, &args->oinfo); in xfs_alloc_ag_vextent()
1182 args->agbno, args->len)); in xfs_alloc_ag_vextent()
[all …]
Dxfs_ialloc.c266 xfs_agblock_t agbno, in xfs_ialloc_inode_init() argument
307 ino = XFS_AGINO_TO_INO(mp, agno, XFS_AGB_TO_AGINO(mp, agbno)); in xfs_ialloc_inode_init()
318 xfs_icreate_log(tp, agno, agbno, icount, in xfs_ialloc_inode_init()
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
421 agbno = XFS_AGINO_TO_AGBNO(mp, *startino); in xfs_align_sparse_ino()
422 mod = agbno % mp->m_sb.sb_inoalignmt; in xfs_align_sparse_ino()
659 args.agbno = XFS_AGINO_TO_AGBNO(args.mp, newino) + in xfs_ialloc_ag_alloc()
664 (args.agbno < be32_to_cpu(agi->agi_length)))) { in xfs_ialloc_ag_alloc()
665 args.fsbno = XFS_AGB_TO_FSB(args.mp, pag->pag_agno, args.agbno); in xfs_ialloc_ag_alloc()
[all …]
Dxfs_types.c37 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()
Dxfs_btree.c98 xfs_agblock_t agbno, in xfs_btree_check_sblock_siblings() argument
107 if (sibling == agbno) in xfs_btree_check_sblock_siblings()
201 xfs_agblock_t agbno = NULLAGBLOCK; in __xfs_btree_check_sblock() local
221 agbno = xfs_daddr_to_agbno(mp, xfs_buf_daddr(bp)); in __xfs_btree_check_sblock()
225 fa = xfs_btree_check_sblock_siblings(mp, cur, level, agno, agbno, in __xfs_btree_check_sblock()
229 agbno, block->bb_u.s.bb_rightsib); in __xfs_btree_check_sblock()
286 xfs_agblock_t agbno, in xfs_btree_check_sptr() argument
291 return xfs_verify_agbno(cur->bc_mp, cur->bc_ag.pag->pag_agno, agbno); in xfs_btree_check_sptr()
920 xfs_agblock_t agbno, /* allocation group block number */ in xfs_btree_reada_bufs() argument
927 ASSERT(agbno != NULLAGBLOCK); in xfs_btree_reada_bufs()
[all …]
Dxfs_refcount.h52 xfs_agblock_t agbno, xfs_extlen_t aglen, xfs_agblock_t *fbno,
/fs/xfs/scrub/
Dagheader.c31 xfs_agblock_t agbno; in xchk_superblock_xref() local
37 agbno = XFS_SB_BLOCK(mp); in xchk_superblock_xref()
40 if (!xchk_xref_process_error(sc, agno, agbno, &error)) in xchk_superblock_xref()
43 xchk_xref_is_used_space(sc, agbno, 1); in xchk_superblock_xref()
44 xchk_xref_is_not_inode_chunk(sc, agbno, 1); in xchk_superblock_xref()
45 xchk_xref_is_owned_by(sc, agbno, 1, &XFS_RMAP_OINFO_FS); in xchk_superblock_xref()
46 xchk_xref_is_not_shared(sc, agbno, 1); in xchk_superblock_xref()
395 xfs_agblock_t agbno; in xchk_agf_xref_cntbt() local
414 error = xfs_alloc_get_rec(sc->sa.cnt_cur, &agbno, &blocks, &have); in xchk_agf_xref_cntbt()
496 xfs_agblock_t agbno; in xchk_agf_xref() local
[all …]
Dalloc.c38 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()
Dtrace.h210 __field(xfs_agblock_t, agbno)
217 __entry->agbno = xfs_daddr_to_agbno(sc->mp, daddr);
224 __entry->agbno,
665 xfs_agblock_t agbno, xfs_extlen_t len),
666 TP_ARGS(mp, agno, agbno, len),
670 __field(xfs_agblock_t, agbno)
676 __entry->agbno = agbno;
682 __entry->agbno,
688 xfs_agblock_t agbno, xfs_extlen_t len), \
689 TP_ARGS(mp, agno, agbno, len))
[all …]
Dialloc.c86 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
228 agbno = XFS_AGINO_TO_AGBNO(mp, irec->ir_startino + cluster_base); in xchk_iallocbt_check_cluster()
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()
276 xchk_xref_is_owned_by(bs->sc, agbno, M_IGEO(mp)->blocks_per_cluster, in xchk_iallocbt_check_cluster()
623 xfs_agblock_t agbno, in xchk_xref_inode_check() argument
[all …]
Dscrub.h141 void xchk_xref_is_used_space(struct xfs_scrub *sc, xfs_agblock_t agbno,
143 void xchk_xref_is_not_inode_chunk(struct xfs_scrub *sc, xfs_agblock_t agbno,
145 void xchk_xref_is_inode_chunk(struct xfs_scrub *sc, xfs_agblock_t agbno,
147 void xchk_xref_is_owned_by(struct xfs_scrub *sc, xfs_agblock_t agbno,
149 void xchk_xref_is_not_owned_by(struct xfs_scrub *sc, xfs_agblock_t agbno,
151 void xchk_xref_has_no_owner(struct xfs_scrub *sc, xfs_agblock_t agbno,
Drepair.c498 xfs_agblock_t agbno) in xrep_put_freelist() argument
512 error = xfs_rmap_alloc(sc->tp, sc->sa.agf_bp, sc->sa.pag, agbno, 1, in xrep_put_freelist()
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()
561 error = xfs_rmap_has_other_keys(cur, agbno, 1, oinfo, &has_other_rmap); in xrep_reap_block()
580 error = xfs_rmap_free(sc->tp, agf_bp, sc->sa.pag, agbno, 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
[all …]
Dbmap.c105 xfs_agblock_t agbno, in xchk_bmap_get_rmap() argument
134 error = xfs_rmap_lookup_le_range(info->sc->sa.rmap_cur, agbno, in xchk_bmap_get_rmap()
145 error = xfs_rmap_lookup_le(info->sc->sa.rmap_cur, agbno, 0, owner, in xchk_bmap_get_rmap()
170 xfs_agblock_t agbno) in xchk_bmap_xref_rmap() argument
185 if (!xchk_bmap_get_rmap(info, irec, agbno, owner, &rmap)) in xchk_bmap_xref_rmap()
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()
[all …]
Drefcount.c317 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()
Drmap.c69 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()
Dinode.c525 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()
Dagheader_repair.c92 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()
578 xfs_agblock_t agbno; in xrep_agfl_init_header() local
601 agbno = XFS_FSB_TO_AGBNO(mp, br->start); in xrep_agfl_init_header()
603 trace_xrep_agfl_insert(mp, sc->sa.pag->pag_agno, agbno, in xrep_agfl_init_header()
607 agfl_bno[fl_off] = cpu_to_be32(agbno); in xrep_agfl_init_header()
609 agbno++; in xrep_agfl_init_header()
Dbtree.c363 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()
/fs/xfs/
Dxfs_icreate_item.c93 xfs_agblock_t agbno, in xfs_icreate_log() argument
109 icp->ic_format.icl_agbno = cpu_to_be32(agbno); in xfs_icreate_log()
152 xfs_agblock_t agbno; in xlog_recover_icreate_commit_pass2() local
177 agbno = be32_to_cpu(icl->icl_agbno); in xlog_recover_icreate_commit_pass2()
178 if (!agbno || agbno == NULLAGBLOCK || agbno >= mp->m_sb.sb_agblocks) { in xlog_recover_icreate_commit_pass2()
229 agbno + i * igeo->blocks_per_cluster); in xlog_recover_icreate_commit_pass2()
254 return xfs_ialloc_inode_init(mp, NULL, buffer_list, count, agno, agbno, in xlog_recover_icreate_commit_pass2()
Dxfs_trace.h1629 xfs_agblock_t agbno, xfs_extlen_t len),
1630 TP_ARGS(mp, agno, agbno, len),
1634 __field(xfs_agblock_t, agbno)
1640 __entry->agbno = agbno;
1646 __entry->agbno,
1652 xfs_agblock_t agbno, xfs_extlen_t len), \
1653 TP_ARGS(mp, agno, agbno, len))
1662 xfs_agblock_t agbno, xfs_extlen_t len,
1664 TP_ARGS(mp, agno, agbno, len, tbno, tlen),
1668 __field(xfs_agblock_t, agbno)
[all …]
Dxfs_reflink.c133 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()
1523 xfs_agblock_t agbno; in xfs_reflink_inode_has_shared_extents() local
1543 agbno = XFS_FSB_TO_AGBNO(mp, got.br_startblock); in xfs_reflink_inode_has_shared_extents()
1546 error = xfs_reflink_find_shared(mp, tp, agno, agbno, aglen, in xfs_reflink_inode_has_shared_extents()
Dxfs_extfree_item.c368 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()
535 xfs_agblock_t agbno; in xfs_agfl_free_finish_item() local
541 agbno = XFS_FSB_TO_AGBNO(mp, free->xefi_startblock); in xfs_agfl_free_finish_item()
543 trace_xfs_agfl_free_deferred(mp, agno, 0, agbno, free->xefi_blockcount); in xfs_agfl_free_finish_item()
547 error = xfs_free_agfl_block(tp, agno, agbno, agbp, in xfs_agfl_free_finish_item()
Dxfs_iwalk.c102 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()
Dxfs_icreate_item.h18 xfs_agblock_t agbno, unsigned int count,
Dxfs_reflink.h20 xfs_agnumber_t agno, xfs_agblock_t agbno, xfs_extlen_t aglen,

12