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()
242 xfs_agblock_t *bno, /* output: starting block of extent */ in xfs_alloc_get_rec() argument
255 *bno = be32_to_cpu(rec->alloc.ar_startblock); in xfs_alloc_get_rec()
262 if (!xfs_verify_agbext(pag, *bno, *len)) in xfs_alloc_get_rec()
273 "start block 0x%x block count 0x%x", *bno, *len); in xfs_alloc_get_rec()
290 xfs_agblock_t bno = foundbno; in xfs_alloc_compute_aligned() local
296 busy = xfs_extent_busy_trim(args, &bno, &len, busy_gen); in xfs_alloc_compute_aligned()
302 if (bno < args->min_agbno && bno + len > args->min_agbno) { in xfs_alloc_compute_aligned()
303 diff = args->min_agbno - bno; in xfs_alloc_compute_aligned()
305 bno += diff; in xfs_alloc_compute_aligned()
311 xfs_agblock_t aligned_bno = roundup(bno, args->alignment); in xfs_alloc_compute_aligned()
313 diff = aligned_bno - bno; in xfs_alloc_compute_aligned()
318 *resbno = bno; in xfs_alloc_compute_aligned()
751 xfs_agblock_t bno; /* alloc bno */ member
774 acur->bno = 0; in xfs_alloc_cur_setup()
837 xfs_agblock_t bno, bnoa, bnew; in xfs_alloc_cur_check() local
846 error = xfs_alloc_get_rec(cur, &bno, &len, &i); in xfs_alloc_cur_check()
861 busy = xfs_alloc_compute_aligned(args, bno, len, &bnoa, &lena, in xfs_alloc_cur_check()
900 acur->rec_bno = bno; in xfs_alloc_cur_check()
902 acur->bno = bnew; in xfs_alloc_cur_check()
917 trace_xfs_alloc_cur_check(args->mp, cur->bc_btnum, bno, len, diff, in xfs_alloc_cur_check()
935 ASSERT(acur->bno >= acur->rec_bno); in xfs_alloc_cur_finish()
936 ASSERT(acur->bno + acur->len <= acur->rec_bno + acur->rec_len); in xfs_alloc_cur_finish()
940 acur->rec_len, acur->bno, acur->len, 0); in xfs_alloc_cur_finish()
944 args->agbno = acur->bno; in xfs_alloc_cur_finish()
962 xfs_agblock_t bno; in xfs_alloc_cntbt_iter() local
977 error = xfs_alloc_get_rec(cur, &bno, &len, &i); in xfs_alloc_cntbt_iter()
995 if (bno > args->agbno) { in xfs_alloc_cntbt_iter()
998 error = xfs_alloc_get_rec(cur, &bno, &len, &i); in xfs_alloc_cntbt_iter()
1430 xfs_agblock_t *bno, in xfs_alloc_ag_vextent_lastblock() argument
1452 error = xfs_alloc_get_rec(acur->cnt, bno, len, &i); in xfs_alloc_ag_vextent_lastblock()
1497 xfs_agblock_t bno; in xfs_alloc_ag_vextent_near() local
1521 error = xfs_alloc_ag_vextent_small(args, acur.cnt, &bno, in xfs_alloc_ag_vextent_near()
1545 error = xfs_alloc_ag_vextent_lastblock(args, &acur, &bno, &len, in xfs_alloc_ag_vextent_near()
1815 xfs_agblock_t bno, in xfs_free_ag_extent() argument
1839 error = xfs_rmap_free(tp, agbp, pag, bno, len, oinfo); in xfs_free_ag_extent()
1852 if ((error = xfs_alloc_lookup_le(bno_cur, bno, len, &haveleft))) in xfs_free_ag_extent()
1867 if (ltbno + ltlen < bno) in xfs_free_ag_extent()
1875 if (XFS_IS_CORRUPT(mp, ltbno + ltlen > bno)) { in xfs_free_ag_extent()
1900 if (bno + len < gtbno) in xfs_free_ag_extent()
1908 if (XFS_IS_CORRUPT(mp, bno + len > gtbno)) { in xfs_free_ag_extent()
2059 nbno = bno; in xfs_free_ag_extent()
2069 nbno = bno; in xfs_free_ag_extent()
2109 trace_xfs_free_extent(mp, agno, bno, len, type, haveleft, haveright); in xfs_free_ag_extent()
2114 trace_xfs_free_extent(mp, agno, bno, len, type, -1, -1); in xfs_free_ag_extent()
2418 xfs_fsblock_t bno, in __xfs_free_extent_later() argument
2429 ASSERT(bno != NULLFSBLOCK); in __xfs_free_extent_later()
2432 ASSERT(!isnullstartblock(bno)); in __xfs_free_extent_later()
2433 agno = XFS_FSB_TO_AGNO(mp, bno); in __xfs_free_extent_later()
2434 agbno = XFS_FSB_TO_AGBNO(mp, bno); in __xfs_free_extent_later()
2444 xefi->xefi_startblock = bno; in __xfs_free_extent_later()
2460 XFS_FSB_TO_AGNO(tp->t_mountp, bno), 0, in __xfs_free_extent_later()
2461 XFS_FSB_TO_AGBNO(tp->t_mountp, bno), len); in __xfs_free_extent_later()
2521 xfs_agblock_t bno; /* freelist block */ in xfs_alloc_fix_freelist() local
2618 error = xfs_alloc_get_freelist(pag, tp, agbp, &bno, 0); in xfs_alloc_fix_freelist()
2623 xfs_defer_agfl_block(tp, args->agno, bno, &targs.oinfo); in xfs_alloc_fix_freelist()
2672 for (bno = targs.agbno; bno < targs.agbno + targs.len; bno++) { in xfs_alloc_fix_freelist()
2674 agflbp, bno, 0); in xfs_alloc_fix_freelist()
2707 xfs_agblock_t bno; in xfs_alloc_get_freelist() local
2732 bno = be32_to_cpu(agfl_bno[be32_to_cpu(agf->agf_flfirst)]); in xfs_alloc_get_freelist()
2750 *bnop = bno; in xfs_alloc_get_freelist()
2806 xfs_agblock_t bno, in xfs_alloc_put_freelist() argument
2844 *blockp = cpu_to_be32(bno); in xfs_alloc_put_freelist()
3563 xfs_fsblock_t bno, in __xfs_free_extent() argument
3571 xfs_agnumber_t agno = XFS_FSB_TO_AGNO(mp, bno); in __xfs_free_extent()
3572 xfs_agblock_t agbno = XFS_FSB_TO_AGBNO(mp, bno); in __xfs_free_extent()
3680 xfs_agblock_t bno, in xfs_alloc_has_record() argument
3688 low.a.ar_startblock = bno; in xfs_alloc_has_record()
3690 high.a.ar_startblock = bno + len - 1; in xfs_alloc_has_record()