Searched refs:agbno (Results 1 - 25 of 41) sorted by last modified time

12

/linux-master/fs/xfs/
H A Dxfs_trace.h16 * agbno: per-AG block number in fs blocks
1631 xfs_agblock_t agbno, xfs_extlen_t len),
1632 TP_ARGS(mp, agno, agbno, len),
1636 __field(xfs_agblock_t, agbno)
1642 __entry->agbno = agbno;
1645 TP_printk("dev %d:%d agno 0x%x agbno 0x%x fsbcount 0x%x",
1648 __entry->agbno,
1654 xfs_agblock_t agbno, xfs_extlen_t len), \
1655 TP_ARGS(mp, agno, agbno, le
[all...]
H A Dxfs_reflink.c133 xfs_agblock_t agbno,
149 error = xfs_refcount_find_shared(cur, agbno, aglen, fbno, flen,
176 xfs_agblock_t agbno; local
191 agbno = XFS_FSB_TO_AGBNO(mp, irec->br_startblock);
194 error = xfs_reflink_find_shared(pag, NULL, agbno, aglen, &fbno, &flen,
206 if (fbno == agbno) {
224 irec->br_blockcount = fbno - agbno;
1581 xfs_agblock_t agbno; local
1591 agbno = XFS_FSB_TO_AGBNO(mp, got.br_startblock);
1593 error = xfs_reflink_find_shared(pag, tp, agbno, agle
130 xfs_reflink_find_shared( struct xfs_perag *pag, struct xfs_trans *tp, xfs_agblock_t agbno, xfs_extlen_t aglen, xfs_agblock_t *fbno, xfs_extlen_t *flen, bool find_end_of_shared) argument
[all...]
H A Dxfs_iwalk.c104 xfs_agblock_t agbno; local
108 agbno = XFS_AGINO_TO_AGBNO(mp, irec->ir_startino);
117 XFS_AGB_TO_DADDR(mp, agno, agbno),
121 agbno += igeo->blocks_per_cluster;
H A Dxfs_icreate_item.c93 xfs_agblock_t agbno,
109 icp->ic_format.icl_agbno = cpu_to_be32(agbno);
152 xfs_agblock_t agbno; local
177 agbno = be32_to_cpu(icl->icl_agbno);
178 if (!agbno || agbno == NULLAGBLOCK || agbno >= mp->m_sb.sb_agblocks) {
179 xfs_warn(log->l_mp, "xlog_recover_do_icreate_trans: bad agbno");
229 agbno + i * igeo->blocks_per_cluster);
254 return xfs_ialloc_inode_init(mp, NULL, buffer_list, count, agno, agbno,
90 xfs_icreate_log( struct xfs_trans *tp, xfs_agnumber_t agno, xfs_agblock_t agbno, unsigned int count, unsigned int inode_size, xfs_agblock_t length, unsigned int generation) argument
[all...]
H A Dxfs_extfree_item.c455 xfs_agblock_t agbno; local
459 agbno = XFS_FSB_TO_AGBNO(mp, xefi->xefi_startblock);
468 agbno, xefi->xefi_blockcount);
477 error = __xfs_free_extent(tp, xefi->xefi_pag, agbno,
537 xfs_agblock_t agbno; local
542 agbno = XFS_FSB_TO_AGBNO(mp, xefi->xefi_startblock);
545 trace_xfs_agfl_free_deferred(mp, xefi->xefi_pag->pag_agno, 0, agbno,
551 agbno, agbp, &oinfo);
/linux-master/fs/xfs/scrub/
H A Dtrace.h222 TP_printk("dev %d:%d type %s agno 0x%x agbno 0x%x error %d ret_ip %pS",
270 __field(xfs_agblock_t, agbno)
277 __entry->agbno = xfs_daddr_to_agbno(sc->mp, daddr);
280 TP_printk("dev %d:%d type %s agno 0x%x agbno 0x%x ret_ip %pS",
284 __entry->agbno,
486 TP_printk("dev %d:%d type %s %sbt level %d ptr %d agno 0x%x agbno 0x%x error %d ret_ip %pS",
529 TP_printk("dev %d:%d ino 0x%llx fork %s type %s %sbt level %d ptr %d agno 0x%x agbno 0x%x error %d ret_ip %pS",
568 TP_printk("dev %d:%d type %s %sbt level %d ptr %d agno 0x%x agbno 0x%x ret_ip %pS",
608 TP_printk("dev %d:%d ino 0x%llx fork %s type %s %sbt level %d ptr %d agno 0x%x agbno 0x%x ret_ip %pS",
647 TP_printk("dev %d:%d type %s %sbt agno 0x%x agbno
[all...]
H A Dscrub.h196 void xchk_xref_is_used_space(struct xfs_scrub *sc, xfs_agblock_t agbno,
198 void xchk_xref_is_not_inode_chunk(struct xfs_scrub *sc, xfs_agblock_t agbno,
200 void xchk_xref_is_inode_chunk(struct xfs_scrub *sc, xfs_agblock_t agbno,
202 void xchk_xref_is_only_owned_by(struct xfs_scrub *sc, xfs_agblock_t agbno,
204 void xchk_xref_is_not_owned_by(struct xfs_scrub *sc, xfs_agblock_t agbno,
206 void xchk_xref_has_no_owner(struct xfs_scrub *sc, xfs_agblock_t agbno,
H A Drmap_repair.c342 xfs_agblock_t agbno; local
350 agbno = XFS_FSB_TO_AGBNO(mp, rec->br_startblock);
359 agbno == accum->rm_startblock + accum->rm_blockcount &&
370 accum->rm_startblock = agbno;
387 xfs_agblock_t agbno; local
397 agbno = XFS_FSB_TO_AGBNO(cur->bc_mp, fsbno);
398 return xagb_bitmap_set(&rf->bmbt_blocks, agbno, 1);
634 xfs_agblock_t agbno; local
654 agbno = XFS_AGINO_TO_AGBNO(mp, agino);
658 return xagb_bitmap_set(&ri->ichunk_blocks, agbno, agle
974 xrep_rmap_walk_agfl( struct xfs_mount *mp, xfs_agblock_t agbno, void *priv) argument
[all...]
H A Drmap.c115 xfs_agblock_t agbno = irec->rm_startblock; local
121 xchk_xref_is_used_space(sc, agbno, len);
123 xchk_xref_is_inode_chunk(sc, agbno, len);
125 xchk_xref_is_not_inode_chunk(sc, agbno, len);
378 xfs_agblock_t agbno,
383 return xagb_bitmap_set(bitmap, agbno, 1);
376 xchk_rmapbt_walk_agfl( struct xfs_mount *mp, xfs_agblock_t agbno, void *priv) argument
H A Drepair.c460 xfs_agblock_t *agbno = priv; local
462 return (*agbno == bno) ? -ECANCELED : 0;
471 xfs_agblock_t agbno,
481 daddr = XFS_AGB_TO_DADDR(mp, ri->sc->sa.pag->pag_agno, agbno);
491 xrep_findroot_agfl_walk, &agbno);
606 fab->root = agbno;
610 trace_xrep_findroot_block(mp, ri->sc->sa.pag->pag_agno, agbno,
467 xrep_findroot_block( struct xrep_findroot *ri, struct xrep_find_ag_btree *fab, uint64_t owner, xfs_agblock_t agbno, bool *done_with_block) argument
H A Drefcount.c58 * b. Otherwise, record the fragment (in agbno order) for later
142 * is healthy each rmap_irec we see will be in agbno order
191 /* Make sure the fragments actually /are/ in agbno order. */
552 xfs_agblock_t agbno,
564 agbno, &has_refcount);
596 xfs_agblock_t agbno,
606 XFS_REFC_DOMAIN_SHARED, agbno, len, &outcome);
617 xfs_agblock_t agbno,
627 agbno, len, &outcome);
550 xchk_xref_is_cow_staging( struct xfs_scrub *sc, xfs_agblock_t agbno, xfs_extlen_t len) argument
594 xchk_xref_is_not_shared( struct xfs_scrub *sc, xfs_agblock_t agbno, xfs_extlen_t len) argument
615 xchk_xref_is_not_cow_staging( struct xfs_scrub *sc, xfs_agblock_t agbno, xfs_extlen_t len) argument
H A Drefcount_repair.c171 xfs_agblock_t agbno,
176 .rc_startblock = agbno,
201 xfs_agblock_t agbno,
204 return xrep_refc_stash(rr, XFS_REFC_DOMAIN_COW, agbno, len, 1);
168 xrep_refc_stash( struct xrep_refc *rr, enum xfs_refc_domain domain, xfs_agblock_t agbno, xfs_extlen_t len, uint64_t refcount) argument
199 xrep_refc_stash_cow( struct xrep_refc *rr, xfs_agblock_t agbno, xfs_extlen_t len) argument
H A Dreap.c111 xfs_agblock_t agbno)
126 error = xfs_rmap_alloc(sc->tp, sc->sa.agf_bp, sc->sa.pag, agbno, 1,
137 agfl_bp, agbno, 0);
140 xfs_extent_busy_insert(sc->tp, sc->sa.pag, agbno, 1,
218 xfs_agblock_t agbno,
225 xfs_agblock_t agbno_next = agbno + *aglenp;
226 xfs_agblock_t bno = agbno;
232 if (!xfs_verify_agbno(pag, agbno) ||
285 trace_xreap_agextent_binval(sc->sa.pag, agbno, *aglenp);
297 xfs_agblock_t agbno,
109 xreap_put_freelist( struct xfs_scrub *sc, xfs_agblock_t agbno) argument
216 xreap_agextent_binval( struct xreap_state *rs, xfs_agblock_t agbno, xfs_extlen_t *aglenp) argument
295 xreap_agextent_select( struct xreap_state *rs, xfs_agblock_t agbno, xfs_agblock_t agbno_next, bool *crosslinked, xfs_extlen_t *aglenp) argument
355 xreap_agextent_iter( struct xreap_state *rs, xfs_agblock_t agbno, xfs_extlen_t *aglenp, bool crosslinked) argument
466 xreap_agmeta_extent( uint32_t agbno, uint32_t len, void *priv) argument
552 xfs_agblock_t agbno = XFS_FSB_TO_AGBNO(sc->mp, fsbno); local
[all...]
H A Dnewbt.h21 xfs_agblock_t agbno; member in struct:xrep_newbt_resv
68 xfs_agblock_t agbno, xfs_extlen_t len);
H A Dnewbt.c155 resv->agbno = XFS_FSB_TO_AGBNO(mp, args->fsbno);
185 xfs_agblock_t agbno,
192 .fsbno = XFS_AGB_TO_FSB(mp, pag->pag_agno, agbno),
376 xfs_agblock_t free_agbno = resv->agbno;
519 xfs_agblock_t agbno; local
536 agbno = resv->agbno + resv->used;
543 trace_xrep_newbt_claim_block(mp, resv->pag->pag_agno, agbno, 1,
548 agbno));
550 ptr->s = cpu_to_be32(agbno);
182 xrep_newbt_add_extent( struct xrep_newbt *xnr, struct xfs_perag *pag, xfs_agblock_t agbno, xfs_extlen_t len) argument
[all...]
H A Dialloc.c262 xfs_agblock_t agbno; local
265 agbno = XFS_AGINO_TO_AGBNO(mp, agino);
268 if (!xfs_verify_agbext(pag, agbno, len))
274 xchk_xref_is_used_space(sc, agbno, len);
279 xchk_xref_is_only_owned_by(sc, agbno, len, &XFS_RMAP_OINFO_INODES);
280 xchk_xref_is_not_shared(sc, agbno, len);
281 xchk_xref_is_not_cow_staging(sc, agbno, len);
372 xfs_agblock_t agbno; local
382 agbno = XFS_AGINO_TO_AGBNO(mp, irec->ir_startino + cluster_base);
399 imap.im_blkno = XFS_AGB_TO_DADDR(mp, agno, agbno);
755 xchk_xref_inode_check( struct xfs_scrub *sc, xfs_agblock_t agbno, xfs_extlen_t len, struct xfs_btree_cur **icur, enum xbtree_recpacking expected) argument
777 xchk_xref_is_not_inode_chunk( struct xfs_scrub *sc, xfs_agblock_t agbno, xfs_extlen_t len) argument
790 xchk_xref_is_inode_chunk( struct xfs_scrub *sc, xfs_agblock_t agbno, xfs_extlen_t len) argument
[all...]
H A Dialloc_repair.c341 xfs_agblock_t agbno,
351 if (!xfs_verify_agbext(sc->sa.pag, agbno, len))
355 if (!IS_ALIGNED(agbno, igeo->blocks_per_cluster) ||
356 !IS_ALIGNED(agbno + len, igeo->blocks_per_cluster))
364 (!IS_ALIGNED(agbno, igeo->cluster_align) ||
365 !IS_ALIGNED(agbno + len, igeo->cluster_align)))
373 (!IS_ALIGNED(agbno, mp->m_sb.sb_spino_align) ||
374 !IS_ALIGNED(agbno + len, mp->m_sb.sb_spino_align)))
378 agino = XFS_AGB_TO_AGINO(mp, agbno);
382 agino = XFS_AGB_TO_AGINO(mp, agbno
339 xrep_ibt_check_inode_ext( struct xfs_scrub *sc, xfs_agblock_t agbno, xfs_extlen_t len) argument
[all...]
H A Dbtree.c372 xfs_agblock_t agbno; local
380 agbno = xfs_daddr_to_agbno(bs->cur->bc_mp, daddr);
395 xchk_xref_is_used_space(bs->sc, agbno, 1);
404 xchk_xref_is_only_owned_by(bs->sc, agbno, 1, bs->oinfo);
H A Dbmap_repair.c102 xfs_agblock_t agbno; local
107 agbno = XFS_FSB_TO_AGBNO(sc->mp, startblock);
108 error = xfs_refcount_find_shared(sc->sa.refc_cur, agbno, blockcount,
H A Dbmap.c145 xfs_agblock_t agbno,
174 error = xfs_rmap_lookup_le_range(info->sc->sa.rmap_cur, agbno,
177 error = xfs_rmap_lookup_le(info->sc->sa.rmap_cur, agbno,
194 xfs_agblock_t agbno)
204 if (!xchk_bmap_get_rmap(info, irec, agbno, owner, &rmap))
211 if (rmap.rm_startblock != agbno)
216 if (rmap_end != agbno + irec->br_blockcount)
261 xfs_agblock_t agbno)
271 if (!xchk_bmap_get_rmap(info, irec, agbno, owner, &rmap))
279 if (rmap.rm_startblock > agbno)
142 xchk_bmap_get_rmap( struct xchk_bmap_info *info, struct xfs_bmbt_irec *irec, xfs_agblock_t agbno, uint64_t owner, struct xfs_rmap_irec *rmap) argument
191 xchk_bmap_xref_rmap( struct xchk_bmap_info *info, struct xfs_bmbt_irec *irec, xfs_agblock_t agbno) argument
258 xchk_bmap_xref_rmap_cow( struct xchk_bmap_info *info, struct xfs_bmbt_irec *irec, xfs_agblock_t agbno) argument
331 xfs_agblock_t agbno; local
[all...]
H A Dalloc_repair.c266 xfs_agblock_t agbno,
271 return xagb_bitmap_set(&ra->not_allocbt_blocks, agbno, 1);
538 xfs_agblock_t free_agbno = resv->agbno + resv->used;
546 xfs_rmap_alloc_extent(sc->tp, pag->pag_agno, resv->agbno,
264 xrep_abt_walk_agfl( struct xfs_mount *mp, xfs_agblock_t agbno, void *priv) argument
H A Dagheader_repair.c110 xfs_agblock_t agbno,
115 if (!xfs_verify_agbno(sc->sa.pag, agbno))
486 uint32_t agbno,
491 xfs_agblock_t last_agbno = agbno + len - 1;
494 while (agbno <= last_agbno) {
497 error = xfs_rmap_has_other_keys(ra->rmap_cur, agbno, 1,
503 error = xagb_bitmap_set(&ra->crossed, agbno, 1);
510 agbno++;
642 xfs_agblock_t agbno = start; local
645 trace_xrep_agfl_insert(sc->sa.pag, agbno, le
108 xrep_agf_check_agfl_block( struct xfs_mount *mp, xfs_agblock_t agbno, void *priv) argument
485 xrep_agfl_check_extent( uint32_t agbno, uint32_t len, void *priv) argument
[all...]
H A Dagheader.c40 xfs_agblock_t agbno; local
46 agbno = XFS_SB_BLOCK(mp);
49 if (!xchk_xref_process_error(sc, agno, agbno, &error))
52 xchk_xref_is_used_space(sc, agbno, 1);
53 xchk_xref_is_not_inode_chunk(sc, agbno, 1);
54 xchk_xref_is_only_owned_by(sc, agbno, 1, &XFS_RMAP_OINFO_FS);
55 xchk_xref_is_not_shared(sc, agbno, 1);
56 xchk_xref_is_not_cow_staging(sc, agbno, 1);
404 xfs_agblock_t agbno; local
423 error = xfs_alloc_get_rec(sc->sa.cnt_cur, &agbno,
505 xfs_agblock_t agbno; local
536 xfs_agblock_t agbno; local
638 xchk_agfl_block_xref( struct xfs_scrub *sc, xfs_agblock_t agbno) argument
654 xchk_agfl_block( struct xfs_mount *mp, xfs_agblock_t agbno, void *priv) argument
693 xfs_agblock_t agbno; local
848 xfs_agblock_t agbno; local
878 xfs_agblock_t agbno; local
[all...]
/linux-master/fs/xfs/libxfs/
H A Dxfs_rmap.c122 xfs_agblock_t agbno,
131 trace_xfs_rmap_insert(rcur->bc_mp, rcur->bc_ag.pag->pag_agno, agbno,
134 error = xfs_rmap_lookup_eq(rcur, agbno, len, owner, offset, flags, &i);
143 rcur->bc_rec.r.rm_startblock = agbno;
166 xfs_agblock_t agbno,
175 trace_xfs_rmap_delete(rcur->bc_mp, rcur->bc_ag.pag->pag_agno, agbno,
178 error = xfs_rmap_lookup_eq(rcur, agbno, len, owner, offset, flags, &i);
960 * the extent in the rmap btree. This takes the form of a [agbno, length,
120 xfs_rmap_insert( struct xfs_btree_cur *rcur, xfs_agblock_t agbno, xfs_extlen_t len, uint64_t owner, uint64_t offset, unsigned int flags) argument
164 xfs_rmap_delete( struct xfs_btree_cur *rcur, xfs_agblock_t agbno, xfs_extlen_t len, uint64_t owner, uint64_t offset, unsigned int flags) argument
H A Dxfs_rmap.h131 int xfs_rmap_insert(struct xfs_btree_cur *rcur, xfs_agblock_t agbno,

Completed in 236 milliseconds

12