Searched refs:agbno (Results 1 - 25 of 41) sorted by path

12

/linux-master/fs/xfs/libxfs/
H A Dxfs_ag.c973 if (!error && args.agbno == NULLAGBLOCK)
H A Dxfs_ag.h178 xfs_verify_agbno(struct xfs_perag *pag, xfs_agblock_t agbno) argument
180 if (agbno >= pag->block_count)
182 if (agbno <= pag->min_block)
190 xfs_agblock_t agbno,
193 if (agbno + len <= agbno)
196 if (!xfs_verify_agbno(pag, agbno))
199 return xfs_verify_agbno(pag, agbno + len - 1);
188 xfs_verify_agbext( struct xfs_perag *pag, xfs_agblock_t agbno, xfs_agblock_t len) argument
H A Dxfs_alloc.c965 diff = xfs_alloc_compute_diff(args->agbno, args->len,
1024 args->agbno = acur->bno;
1052 error = xfs_alloc_lookup_ge(cur, args->agbno, cur_len, &i);
1069 * We looked up the first record >= [agbno, len] above. The agbno is a
1071 * agbno. If it is past agbno, check the previous record too so long as
1075 if (bno > args->agbno) {
1168 *fbnop = args->agbno = fbno;
1195 args->agbno
2428 xfs_free_agfl_block( struct xfs_trans *tp, xfs_agnumber_t agno, xfs_agblock_t agbno, struct xfs_buf *agbp, struct xfs_owner_info *oinfo) argument
2552 xfs_defer_agfl_block( struct xfs_trans *tp, xfs_agnumber_t agno, xfs_agblock_t agbno, struct xfs_owner_info *oinfo) argument
2600 xfs_agblock_t agbno; local
3933 __xfs_free_extent( struct xfs_trans *tp, struct xfs_perag *pag, xfs_agblock_t agbno, xfs_extlen_t len, const struct xfs_owner_info *oinfo, enum xfs_ag_resv_type type, bool skip_discard) argument
[all...]
H A Dxfs_alloc.h41 xfs_agblock_t agbno; /* allocation group-relative block # */ member in struct:xfs_alloc_arg
50 xfs_agblock_t min_agbno; /* set an agbno range for NEAR allocs */
146 xfs_agblock_t agbno,
156 xfs_agblock_t agbno,
161 return __xfs_free_extent(tp, pag, agbno, len, oinfo, type, false);
153 xfs_free_extent( struct xfs_trans *tp, struct xfs_perag *pag, xfs_agblock_t agbno, xfs_extlen_t len, const struct xfs_owner_info *oinfo, enum xfs_ag_resv_type type) argument
H A Dxfs_btree.c102 xfs_agblock_t agbno,
111 if (sibling == agbno)
230 xfs_agblock_t agbno; local
247 agbno = xfs_daddr_to_agbno(mp, xfs_buf_daddr(bp));
248 fa = xfs_btree_check_agblock_siblings(pag, agbno,
251 fa = xfs_btree_check_agblock_siblings(pag, agbno,
4817 xfs_agblock_t agbno; local
4827 agbno = xfs_daddr_to_agbno(mp, xfs_buf_daddr(bp));
4828 fa = xfs_btree_check_agblock_siblings(bp->b_pag, agbno,
4831 fa = xfs_btree_check_agblock_siblings(bp->b_pag, agbno,
100 xfs_btree_check_agblock_siblings( struct xfs_perag *pag, xfs_agblock_t agbno, __be32 dsibling) argument
[all...]
H A Dxfs_format.h670 #define XFS_AGB_TO_FSB(mp,agno,agbno) \
671 (((xfs_fsblock_t)(agno) << (mp)->m_sb.sb_agblklog) | (agbno))
676 #define XFS_AGB_TO_DADDR(mp,agno,agbno) \
678 (xfs_fsblock_t)(agno) * (mp)->m_sb.sb_agblocks + (agbno)))
H A Dxfs_ialloc.c300 xfs_agblock_t agbno,
341 ino = XFS_AGINO_TO_INO(mp, agno, XFS_AGB_TO_AGINO(mp, agbno));
352 xfs_icreate_log(tp, agno, agbno, icount,
361 d = XFS_AGB_TO_DADDR(mp, agno, agbno +
451 xfs_agblock_t agbno; local
455 agbno = XFS_AGINO_TO_AGBNO(mp, *startino);
456 mod = agbno % mp->m_sb.sb_inoalignmt;
744 args.agbno = XFS_AGINO_TO_AGBNO(args.mp, newino) +
749 (args.agbno < be32_to_cpu(agi->agi_length)))) {
772 args.agbno));
294 xfs_ialloc_inode_init( struct xfs_mount *mp, struct xfs_trans *tp, struct list_head *buffer_list, int icount, xfs_agnumber_t agno, xfs_agblock_t agbno, xfs_agblock_t length, unsigned int gen) argument
1929 xfs_agblock_t agbno; local
2255 xfs_agblock_t agbno; /* block number containing inode */ local
2319 xfs_imap_lookup( struct xfs_perag *pag, struct xfs_trans *tp, xfs_agino_t agino, xfs_agblock_t agbno, xfs_agblock_t *chunk_agbno, xfs_agblock_t *offset_agbno, int flags) argument
2390 xfs_agblock_t agbno; /* block number of inode in the alloc group */ local
[all...]
H A Dxfs_ialloc.h89 xfs_agnumber_t agno, xfs_agblock_t agbno,
H A Dxfs_refcount.c39 xfs_agblock_t agbno, xfs_extlen_t aglen);
41 xfs_agblock_t agbno, xfs_extlen_t aglen);
382 * Split a refcount extent that crosses agbno.
388 xfs_agblock_t agbno,
396 error = xfs_refcount_lookup_le(cur, domain, agbno, &found_rec);
412 if (rcext.rc_startblock == agbno || xfs_refc_next(&rcext) <= agbno)
417 &rcext, agbno);
421 tmp.rc_startblock = agbno;
422 tmp.rc_blockcount -= (agbno
385 xfs_refcount_split_extent( struct xfs_btree_cur *cur, enum xfs_refc_domain domain, xfs_agblock_t agbno, bool *shape_changed) argument
534 xfs_refcount_merge_left_extent( struct xfs_btree_cur *cur, struct xfs_refcount_irec *left, struct xfs_refcount_irec *cleft, xfs_agblock_t *agbno, xfs_extlen_t *aglen) argument
671 xfs_refcount_find_left_extents( struct xfs_btree_cur *cur, struct xfs_refcount_irec *left, struct xfs_refcount_irec *cleft, enum xfs_refc_domain domain, xfs_agblock_t agbno, xfs_extlen_t aglen) argument
766 xfs_refcount_find_right_extents( struct xfs_btree_cur *cur, struct xfs_refcount_irec *right, struct xfs_refcount_irec *cright, enum xfs_refc_domain domain, xfs_agblock_t agbno, xfs_extlen_t aglen) argument
993 xfs_refcount_merge_extents( struct xfs_btree_cur *cur, enum xfs_refc_domain domain, xfs_agblock_t *agbno, xfs_extlen_t *aglen, enum xfs_refc_adjust_op adjust, bool *shape_changed) argument
1108 xfs_refcount_adjust_extents( struct xfs_btree_cur *cur, xfs_agblock_t *agbno, xfs_extlen_t *aglen, enum xfs_refc_adjust_op adj) argument
1264 xfs_refcount_adjust( struct xfs_btree_cur *cur, xfs_agblock_t *agbno, xfs_extlen_t *aglen, enum xfs_refc_adjust_op adj) argument
1527 xfs_refcount_find_shared( struct xfs_btree_cur *cur, xfs_agblock_t agbno, xfs_extlen_t aglen, xfs_agblock_t *fbno, xfs_extlen_t *flen, bool find_end_of_shared) argument
1691 xfs_refcount_adjust_cow_extents( struct xfs_btree_cur *cur, xfs_agblock_t agbno, xfs_extlen_t aglen, enum xfs_refc_adjust_op adj) argument
1798 xfs_refcount_adjust_cow( struct xfs_btree_cur *cur, xfs_agblock_t agbno, xfs_extlen_t aglen, enum xfs_refc_adjust_op adj) argument
1845 __xfs_refcount_cow_alloc( struct xfs_btree_cur *rcur, xfs_agblock_t agbno, xfs_extlen_t aglen) argument
1862 __xfs_refcount_cow_free( struct xfs_btree_cur *rcur, xfs_agblock_t agbno, xfs_extlen_t aglen) argument
[all...]
H A Dxfs_refcount.h85 xfs_agblock_t agbno, xfs_extlen_t aglen, xfs_agblock_t *fbno,
H A Dxfs_refcount_btree.c88 new->s = cpu_to_be32(args.agbno);
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,
H A Dxfs_types.c25 xfs_agblock_t agbno)
30 if (agbno >= eoag)
32 if (agbno <= XFS_AGFL_BLOCK(mp))
22 xfs_verify_agno_agbno( struct xfs_mount *mp, xfs_agnumber_t agno, xfs_agblock_t agbno) argument
/linux-master/fs/xfs/scrub/
H A Dagb_bitmap.c61 xfs_agblock_t agbno; local
68 agbno = XFS_FSB_TO_AGBNO(cur->bc_mp, fsbno);
70 return xagb_bitmap_set(bitmap, agbno, 1);
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...]
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 Dalloc.c59 xfs_agblock_t agbno,
75 error = xfs_alloc_lookup_le(*pcur, agbno, len, &has_otherrec);
91 if (fbno != agbno || flen != len)
101 xfs_agblock_t agbno = irec->ar_startblock; local
107 xchk_allocbt_xref_other(sc, agbno, len);
108 xchk_xref_is_not_inode_chunk(sc, agbno, len);
109 xchk_xref_has_no_owner(sc, agbno, len);
110 xchk_xref_is_not_shared(sc, agbno, len);
111 xchk_xref_is_not_cow_staging(sc, agbno, len);
180 xfs_agblock_t agbno,
57 xchk_allocbt_xref_other( struct xfs_scrub *sc, xfs_agblock_t agbno, xfs_extlen_t len) argument
178 xchk_xref_is_used_space( struct xfs_scrub *sc, xfs_agblock_t agbno, xfs_extlen_t len) argument
[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 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 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 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 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 Dinode.c689 xfs_agblock_t agbno; local
696 agbno = XFS_INO_TO_AGBNO(sc->mp, ino);
699 if (!xchk_xref_process_error(sc, agno, agbno, &error))
702 xchk_xref_is_used_space(sc, agbno, 1);
704 xchk_xref_is_only_owned_by(sc, agbno, 1, &XFS_RMAP_OINFO_INODES);
705 xchk_xref_is_not_shared(sc, agbno, 1);
706 xchk_xref_is_not_cow_staging(sc, agbno, 1);

Completed in 289 milliseconds

12