Lines Matching refs:bno
58 xfs_agblock_t bno, /* starting block of extent */ in xfs_alloc_lookup_eq() argument
62 cur->bc_rec.a.ar_startblock = bno; in xfs_alloc_lookup_eq()
74 xfs_agblock_t bno, /* starting block of extent */ in xfs_alloc_lookup_ge() argument
78 cur->bc_rec.a.ar_startblock = bno; in xfs_alloc_lookup_ge()
90 xfs_agblock_t bno, /* starting block of extent */ in xfs_alloc_lookup_le() argument
94 cur->bc_rec.a.ar_startblock = bno; in xfs_alloc_lookup_le()
107 xfs_agblock_t bno, /* starting block of extent */ in xfs_alloc_update() argument
112 rec.alloc.ar_startblock = cpu_to_be32(bno); in xfs_alloc_update()
123 xfs_agblock_t *bno, /* output: starting block of extent */ in xfs_alloc_get_rec() argument
132 *bno = be32_to_cpu(rec->alloc.ar_startblock); in xfs_alloc_get_rec()
150 xfs_agblock_t bno; in xfs_alloc_compute_aligned() local
155 xfs_extent_busy_trim(args, foundbno, foundlen, &bno, &len); in xfs_alloc_compute_aligned()
161 if (bno < args->min_agbno && bno + len > args->min_agbno) { in xfs_alloc_compute_aligned()
162 diff = args->min_agbno - bno; in xfs_alloc_compute_aligned()
164 bno += diff; in xfs_alloc_compute_aligned()
170 xfs_agblock_t aligned_bno = roundup(bno, args->alignment); in xfs_alloc_compute_aligned()
172 diff = aligned_bno - bno; in xfs_alloc_compute_aligned()
177 *resbno = bno; in xfs_alloc_compute_aligned()
1585 xfs_agblock_t bno, /* starting block number */ in xfs_free_ag_extent() argument
1614 if ((error = xfs_alloc_lookup_le(bno_cur, bno, len, &haveleft))) in xfs_free_ag_extent()
1626 if (ltbno + ltlen < bno) in xfs_free_ag_extent()
1635 ltbno + ltlen <= bno, error0); in xfs_free_ag_extent()
1654 if (bno + len < gtbno) in xfs_free_ag_extent()
1662 XFS_WANT_CORRUPTED_GOTO(mp, gtbno >= bno + len, error0); in xfs_free_ag_extent()
1773 nbno = bno; in xfs_free_ag_extent()
1783 nbno = bno; in xfs_free_ag_extent()
1817 trace_xfs_free_extent(mp, agno, bno, len, isfl, haveleft, haveright); in xfs_free_ag_extent()
1822 trace_xfs_free_extent(mp, agno, bno, len, isfl, -1, -1); in xfs_free_ag_extent()
1941 xfs_agblock_t bno; /* freelist block */ in xfs_alloc_fix_freelist() local
2010 error = xfs_alloc_get_freelist(tp, agbp, &bno, 0); in xfs_alloc_fix_freelist()
2013 error = xfs_free_ag_extent(tp, agbp, args->agno, bno, 1, 1); in xfs_alloc_fix_freelist()
2016 bp = xfs_btree_get_bufs(mp, tp, args->agno, bno, 0); in xfs_alloc_fix_freelist()
2055 for (bno = targs.agbno; bno < targs.agbno + targs.len; bno++) { in xfs_alloc_fix_freelist()
2057 agflbp, bno, 0); in xfs_alloc_fix_freelist()
2089 xfs_agblock_t bno; /* block number returned */ in xfs_alloc_get_freelist() local
2117 bno = be32_to_cpu(agfl_bno[be32_to_cpu(agf->agf_flfirst)]); in xfs_alloc_get_freelist()
2137 *bnop = bno; in xfs_alloc_get_freelist()
2206 xfs_agblock_t bno, /* block being freed */ in xfs_alloc_put_freelist() argument
2247 *blockp = cpu_to_be32(bno); in xfs_alloc_put_freelist()
2669 xfs_fsblock_t bno, /* starting block number of extent */ in xfs_free_extent() argument
2684 args.agno = XFS_FSB_TO_AGNO(args.mp, bno); in xfs_free_extent()
2688 args.agbno = XFS_FSB_TO_AGBNO(args.mp, bno); in xfs_free_extent()