Lines Matching refs:bno

159 	xfs_agblock_t		bno,	/* starting block of extent */  in xfs_alloc_lookup_eq()  argument
165 cur->bc_rec.a.ar_startblock = bno; in xfs_alloc_lookup_eq()
179 xfs_agblock_t bno, /* starting block of extent */ in xfs_alloc_lookup_ge() argument
185 cur->bc_rec.a.ar_startblock = bno; in xfs_alloc_lookup_ge()
199 xfs_agblock_t bno, /* starting block of extent */ in xfs_alloc_lookup_le() argument
204 cur->bc_rec.a.ar_startblock = bno; in xfs_alloc_lookup_le()
226 xfs_agblock_t bno, /* starting block of extent */ in xfs_alloc_update() argument
231 rec.alloc.ar_startblock = cpu_to_be32(bno); in xfs_alloc_update()
288 xfs_agblock_t *bno, /* output: starting block of extent */ in xfs_alloc_get_rec() argument
306 *bno = irec.ar_startblock; in xfs_alloc_get_rec()
324 xfs_agblock_t bno = foundbno; in xfs_alloc_compute_aligned() local
330 busy = xfs_extent_busy_trim(args, &bno, &len, busy_gen); in xfs_alloc_compute_aligned()
336 if (bno < args->min_agbno && bno + len > args->min_agbno) { in xfs_alloc_compute_aligned()
337 diff = args->min_agbno - bno; in xfs_alloc_compute_aligned()
339 bno += diff; in xfs_alloc_compute_aligned()
345 xfs_agblock_t aligned_bno = roundup(bno, args->alignment); in xfs_alloc_compute_aligned()
347 diff = aligned_bno - bno; in xfs_alloc_compute_aligned()
352 *resbno = bno; in xfs_alloc_compute_aligned()
798 xfs_agblock_t bno; /* alloc bno */ member
821 acur->bno = 0; in xfs_alloc_cur_setup()
884 xfs_agblock_t bno, bnoa, bnew; in xfs_alloc_cur_check() local
893 error = xfs_alloc_get_rec(cur, &bno, &len, &i); in xfs_alloc_cur_check()
908 busy = xfs_alloc_compute_aligned(args, bno, len, &bnoa, &lena, in xfs_alloc_cur_check()
947 acur->rec_bno = bno; in xfs_alloc_cur_check()
949 acur->bno = bnew; in xfs_alloc_cur_check()
964 trace_xfs_alloc_cur_check(args->mp, cur->bc_btnum, bno, len, diff, in xfs_alloc_cur_check()
982 ASSERT(acur->bno >= acur->rec_bno); in xfs_alloc_cur_finish()
983 ASSERT(acur->bno + acur->len <= acur->rec_bno + acur->rec_len); in xfs_alloc_cur_finish()
987 acur->rec_len, acur->bno, acur->len, 0); in xfs_alloc_cur_finish()
991 args->agbno = acur->bno; in xfs_alloc_cur_finish()
1009 xfs_agblock_t bno; in xfs_alloc_cntbt_iter() local
1024 error = xfs_alloc_get_rec(cur, &bno, &len, &i); in xfs_alloc_cntbt_iter()
1042 if (bno > args->agbno) { in xfs_alloc_cntbt_iter()
1045 error = xfs_alloc_get_rec(cur, &bno, &len, &i); in xfs_alloc_cntbt_iter()
1477 xfs_agblock_t *bno, in xfs_alloc_ag_vextent_lastblock() argument
1499 error = xfs_alloc_get_rec(acur->cnt, bno, len, &i); in xfs_alloc_ag_vextent_lastblock()
1545 xfs_agblock_t bno; in xfs_alloc_ag_vextent_near() local
1571 error = xfs_alloc_ag_vextent_small(args, acur.cnt, &bno, in xfs_alloc_ag_vextent_near()
1595 error = xfs_alloc_ag_vextent_lastblock(args, &acur, &bno, &len, in xfs_alloc_ag_vextent_near()
1897 xfs_agblock_t bno, in xfs_free_ag_extent() argument
1921 error = xfs_rmap_free(tp, agbp, pag, bno, len, oinfo); in xfs_free_ag_extent()
1934 if ((error = xfs_alloc_lookup_le(bno_cur, bno, len, &haveleft))) in xfs_free_ag_extent()
1949 if (ltbno + ltlen < bno) in xfs_free_ag_extent()
1957 if (XFS_IS_CORRUPT(mp, ltbno + ltlen > bno)) { in xfs_free_ag_extent()
1982 if (bno + len < gtbno) in xfs_free_ag_extent()
1990 if (XFS_IS_CORRUPT(mp, bno + len > gtbno)) { in xfs_free_ag_extent()
2141 nbno = bno; in xfs_free_ag_extent()
2151 nbno = bno; in xfs_free_ag_extent()
2191 trace_xfs_free_extent(mp, agno, bno, len, type, haveleft, haveright); in xfs_free_ag_extent()
2196 trace_xfs_free_extent(mp, agno, bno, len, type, -1, -1); in xfs_free_ag_extent()
2507 xfs_fsblock_t bno, in __xfs_free_extent_later() argument
2519 ASSERT(bno != NULLFSBLOCK); in __xfs_free_extent_later()
2522 ASSERT(!isnullstartblock(bno)); in __xfs_free_extent_later()
2523 agno = XFS_FSB_TO_AGNO(mp, bno); in __xfs_free_extent_later()
2524 agbno = XFS_FSB_TO_AGBNO(mp, bno); in __xfs_free_extent_later()
2533 if (XFS_IS_CORRUPT(mp, !xfs_verify_fsbext(mp, bno, len))) in __xfs_free_extent_later()
2538 xefi->xefi_startblock = bno; in __xfs_free_extent_later()
2555 XFS_FSB_TO_AGNO(tp->t_mountp, bno), 0, in __xfs_free_extent_later()
2556 XFS_FSB_TO_AGBNO(tp->t_mountp, bno), len); in __xfs_free_extent_later()
2619 xfs_agblock_t bno; /* freelist block */ in xfs_alloc_fix_freelist() local
2717 error = xfs_alloc_get_freelist(pag, tp, agbp, &bno, 0); in xfs_alloc_fix_freelist()
2722 error = xfs_defer_agfl_block(tp, args->agno, bno, &targs.oinfo); in xfs_alloc_fix_freelist()
2773 for (bno = targs.agbno; bno < targs.agbno + targs.len; bno++) { in xfs_alloc_fix_freelist()
2775 agflbp, bno, 0); in xfs_alloc_fix_freelist()
2808 xfs_agblock_t bno; in xfs_alloc_get_freelist() local
2833 bno = be32_to_cpu(agfl_bno[be32_to_cpu(agf->agf_flfirst)]); in xfs_alloc_get_freelist()
2834 if (XFS_IS_CORRUPT(tp->t_mountp, !xfs_verify_agbno(pag, bno))) in xfs_alloc_get_freelist()
2854 *bnop = bno; in xfs_alloc_get_freelist()
2910 xfs_agblock_t bno, in xfs_alloc_put_freelist() argument
2948 *blockp = cpu_to_be32(bno); in xfs_alloc_put_freelist()
3877 xfs_agblock_t bno, in xfs_alloc_has_records() argument
3885 low.a.ar_startblock = bno; in xfs_alloc_has_records()
3887 high.a.ar_startblock = bno + len - 1; in xfs_alloc_has_records()