Lines Matching refs:bno
149 xfs_agblock_t bno, /* starting block of extent */ in xfs_alloc_lookup_eq() argument
153 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
169 cur->bc_rec.a.ar_startblock = bno; in xfs_alloc_lookup_ge()
181 xfs_agblock_t bno, /* starting block of extent */ in xfs_alloc_lookup_le() argument
185 cur->bc_rec.a.ar_startblock = bno; in xfs_alloc_lookup_le()
198 xfs_agblock_t bno, /* starting block of extent */ in xfs_alloc_update() argument
203 rec.alloc.ar_startblock = cpu_to_be32(bno); in xfs_alloc_update()
214 xfs_agblock_t *bno, /* output: starting block of extent */ in xfs_alloc_get_rec() argument
227 *bno = be32_to_cpu(rec->alloc.ar_startblock); in xfs_alloc_get_rec()
234 if (!xfs_verify_agbno(mp, agno, *bno)) in xfs_alloc_get_rec()
236 if (*bno > *bno + *len) in xfs_alloc_get_rec()
238 if (!xfs_verify_agbno(mp, agno, *bno + *len - 1)) in xfs_alloc_get_rec()
248 "start block 0x%x block count 0x%x", *bno, *len); in xfs_alloc_get_rec()
265 xfs_agblock_t bno = foundbno; in xfs_alloc_compute_aligned() local
271 busy = xfs_extent_busy_trim(args, &bno, &len, busy_gen); in xfs_alloc_compute_aligned()
277 if (bno < args->min_agbno && bno + len > args->min_agbno) { in xfs_alloc_compute_aligned()
278 diff = args->min_agbno - bno; in xfs_alloc_compute_aligned()
280 bno += diff; in xfs_alloc_compute_aligned()
286 xfs_agblock_t aligned_bno = roundup(bno, args->alignment); in xfs_alloc_compute_aligned()
288 diff = aligned_bno - bno; in xfs_alloc_compute_aligned()
293 *resbno = bno; in xfs_alloc_compute_aligned()
1700 xfs_agblock_t bno, in xfs_free_ag_extent() argument
1724 error = xfs_rmap_free(tp, agbp, agno, bno, len, oinfo); in xfs_free_ag_extent()
1737 if ((error = xfs_alloc_lookup_le(bno_cur, bno, len, &haveleft))) in xfs_free_ag_extent()
1749 if (ltbno + ltlen < bno) in xfs_free_ag_extent()
1758 ltbno + ltlen <= bno, error0); in xfs_free_ag_extent()
1777 if (bno + len < gtbno) in xfs_free_ag_extent()
1785 XFS_WANT_CORRUPTED_GOTO(mp, gtbno >= bno + len, error0); in xfs_free_ag_extent()
1896 nbno = bno; in xfs_free_ag_extent()
1906 nbno = bno; in xfs_free_ag_extent()
1939 trace_xfs_free_extent(mp, agno, bno, len, type, haveleft, haveright); in xfs_free_ag_extent()
1944 trace_xfs_free_extent(mp, agno, bno, len, type, -1, -1); in xfs_free_ag_extent()
2237 xfs_agblock_t bno; /* freelist block */ in xfs_alloc_fix_freelist() local
2322 error = xfs_alloc_get_freelist(tp, agbp, &bno, 0); in xfs_alloc_fix_freelist()
2327 xfs_defer_agfl_block(tp, args->agno, bno, &targs.oinfo); in xfs_alloc_fix_freelist()
2365 for (bno = targs.agbno; bno < targs.agbno + targs.len; bno++) { in xfs_alloc_fix_freelist()
2367 agflbp, bno, 0); in xfs_alloc_fix_freelist()
2399 xfs_agblock_t bno; /* block number returned */ in xfs_alloc_get_freelist() local
2427 bno = be32_to_cpu(agfl_bno[be32_to_cpu(agf->agf_flfirst)]); in xfs_alloc_get_freelist()
2448 *bnop = bno; in xfs_alloc_get_freelist()
2523 xfs_agblock_t bno, /* block being freed */ in xfs_alloc_put_freelist() argument
2565 *blockp = cpu_to_be32(bno); in xfs_alloc_put_freelist()
3014 xfs_fsblock_t bno, /* starting block number of extent */ in __xfs_free_extent() argument
3022 xfs_agnumber_t agno = XFS_FSB_TO_AGNO(mp, bno); in __xfs_free_extent()
3023 xfs_agblock_t agbno = XFS_FSB_TO_AGBNO(mp, bno); in __xfs_free_extent()
3120 xfs_agblock_t bno, in xfs_alloc_has_record() argument
3128 low.a.ar_startblock = bno; in xfs_alloc_has_record()
3130 high.a.ar_startblock = bno + len - 1; in xfs_alloc_has_record()