Lines Matching refs:bno

145 	xfs_agblock_t		bno,	/* starting block of extent */  in xfs_alloc_lookup_eq()  argument
151 cur->bc_rec.a.ar_startblock = bno; in xfs_alloc_lookup_eq()
165 xfs_agblock_t bno, /* starting block of extent */ in xfs_alloc_lookup_ge() argument
171 cur->bc_rec.a.ar_startblock = bno; in xfs_alloc_lookup_ge()
185 xfs_agblock_t bno, /* starting block of extent */ in xfs_alloc_lookup_le() argument
190 cur->bc_rec.a.ar_startblock = bno; in xfs_alloc_lookup_le()
212 xfs_agblock_t bno, /* starting block of extent */ in xfs_alloc_update() argument
217 rec.alloc.ar_startblock = cpu_to_be32(bno); in xfs_alloc_update()
228 xfs_agblock_t *bno, /* output: starting block of extent */ in xfs_alloc_get_rec() argument
241 *bno = be32_to_cpu(rec->alloc.ar_startblock); in xfs_alloc_get_rec()
248 if (!xfs_verify_agbno(mp, agno, *bno)) in xfs_alloc_get_rec()
250 if (*bno > *bno + *len) in xfs_alloc_get_rec()
252 if (!xfs_verify_agbno(mp, agno, *bno + *len - 1)) in xfs_alloc_get_rec()
262 "start block 0x%x block count 0x%x", *bno, *len); in xfs_alloc_get_rec()
279 xfs_agblock_t bno = foundbno; in xfs_alloc_compute_aligned() local
285 busy = xfs_extent_busy_trim(args, &bno, &len, busy_gen); in xfs_alloc_compute_aligned()
291 if (bno < args->min_agbno && bno + len > args->min_agbno) { in xfs_alloc_compute_aligned()
292 diff = args->min_agbno - bno; in xfs_alloc_compute_aligned()
294 bno += diff; in xfs_alloc_compute_aligned()
300 xfs_agblock_t aligned_bno = roundup(bno, args->alignment); in xfs_alloc_compute_aligned()
302 diff = aligned_bno - bno; in xfs_alloc_compute_aligned()
307 *resbno = bno; in xfs_alloc_compute_aligned()
742 xfs_agblock_t bno; /* alloc bno */ member
767 acur->bno = 0; in xfs_alloc_cur_setup()
830 xfs_agblock_t bno, bnoa, bnew; in xfs_alloc_cur_check() local
839 error = xfs_alloc_get_rec(cur, &bno, &len, &i); in xfs_alloc_cur_check()
854 busy = xfs_alloc_compute_aligned(args, bno, len, &bnoa, &lena, in xfs_alloc_cur_check()
894 acur->rec_bno = bno; in xfs_alloc_cur_check()
896 acur->bno = bnew; in xfs_alloc_cur_check()
911 trace_xfs_alloc_cur_check(args->mp, cur->bc_btnum, bno, len, diff, in xfs_alloc_cur_check()
929 ASSERT(acur->bno >= acur->rec_bno); in xfs_alloc_cur_finish()
930 ASSERT(acur->bno + acur->len <= acur->rec_bno + acur->rec_len); in xfs_alloc_cur_finish()
934 acur->rec_len, acur->bno, acur->len, 0); in xfs_alloc_cur_finish()
938 args->agbno = acur->bno; in xfs_alloc_cur_finish()
956 xfs_agblock_t bno; in xfs_alloc_cntbt_iter() local
971 error = xfs_alloc_get_rec(cur, &bno, &len, &i); in xfs_alloc_cntbt_iter()
989 if (bno > args->agbno) { in xfs_alloc_cntbt_iter()
992 error = xfs_alloc_get_rec(cur, &bno, &len, &i); in xfs_alloc_cntbt_iter()
1496 xfs_agblock_t *bno, in xfs_alloc_ag_vextent_lastblock() argument
1518 error = xfs_alloc_get_rec(acur->cnt, bno, len, &i); in xfs_alloc_ag_vextent_lastblock()
1563 xfs_agblock_t bno; in xfs_alloc_ag_vextent_near() local
1587 error = xfs_alloc_ag_vextent_small(args, acur.cnt, &bno, in xfs_alloc_ag_vextent_near()
1611 error = xfs_alloc_ag_vextent_lastblock(args, &acur, &bno, &len, in xfs_alloc_ag_vextent_near()
1882 xfs_agblock_t bno, in xfs_free_ag_extent() argument
1905 error = xfs_rmap_free(tp, agbp, agno, bno, len, oinfo); in xfs_free_ag_extent()
1918 if ((error = xfs_alloc_lookup_le(bno_cur, bno, len, &haveleft))) in xfs_free_ag_extent()
1933 if (ltbno + ltlen < bno) in xfs_free_ag_extent()
1941 if (XFS_IS_CORRUPT(mp, ltbno + ltlen > bno)) { in xfs_free_ag_extent()
1966 if (bno + len < gtbno) in xfs_free_ag_extent()
1974 if (XFS_IS_CORRUPT(mp, bno + len > gtbno)) { in xfs_free_ag_extent()
2125 nbno = bno; in xfs_free_ag_extent()
2135 nbno = bno; in xfs_free_ag_extent()
2175 trace_xfs_free_extent(mp, agno, bno, len, type, haveleft, haveright); in xfs_free_ag_extent()
2180 trace_xfs_free_extent(mp, agno, bno, len, type, -1, -1); in xfs_free_ag_extent()
2492 xfs_agblock_t bno; /* freelist block */ in xfs_alloc_fix_freelist() local
2579 error = xfs_alloc_get_freelist(tp, agbp, &bno, 0); in xfs_alloc_fix_freelist()
2584 xfs_defer_agfl_block(tp, args->agno, bno, &targs.oinfo); in xfs_alloc_fix_freelist()
2622 for (bno = targs.agbno; bno < targs.agbno + targs.len; bno++) { in xfs_alloc_fix_freelist()
2624 agflbp, bno, 0); in xfs_alloc_fix_freelist()
2656 xfs_agblock_t bno; /* block number returned */ in xfs_alloc_get_freelist() local
2683 bno = be32_to_cpu(agfl_bno[be32_to_cpu(agf->agf_flfirst)]); in xfs_alloc_get_freelist()
2703 *bnop = bno; in xfs_alloc_get_freelist()
2777 xfs_agblock_t bno, /* block being freed */ in xfs_alloc_put_freelist() argument
2815 *blockp = cpu_to_be32(bno); in xfs_alloc_put_freelist()
3273 xfs_fsblock_t bno, in __xfs_free_extent() argument
3281 xfs_agnumber_t agno = XFS_FSB_TO_AGNO(mp, bno); in __xfs_free_extent()
3282 xfs_agblock_t agbno = XFS_FSB_TO_AGBNO(mp, bno); in __xfs_free_extent()
3385 xfs_agblock_t bno, in xfs_alloc_has_record() argument
3393 low.a.ar_startblock = bno; in xfs_alloc_has_record()
3395 high.a.ar_startblock = bno + len - 1; in xfs_alloc_has_record()