Lines Matching defs:bno
112 * - the AGF (bno and cnt) and AGI btree root blocks, and optionally
140 * Lookup the record equal to [bno, len] in the btree given by cur.
145 xfs_agblock_t bno, /* starting block of extent */
151 cur->bc_rec.a.ar_startblock = bno;
159 * Lookup the first record greater than or equal to [bno, len]
165 xfs_agblock_t bno, /* starting block of extent */
171 cur->bc_rec.a.ar_startblock = bno;
179 * Lookup the first record less than or equal to [bno, len]
185 xfs_agblock_t bno, /* starting block of extent */
190 cur->bc_rec.a.ar_startblock = bno;
206 * by [bno, len].
212 xfs_agblock_t bno, /* starting block of extent */
217 rec.alloc.ar_startblock = cpu_to_be32(bno);
228 xfs_agblock_t *bno, /* output: starting block of extent */
241 *bno = be32_to_cpu(rec->alloc.ar_startblock);
248 if (!xfs_verify_agbno(mp, agno, *bno))
250 if (*bno > *bno + *len)
252 if (!xfs_verify_agbno(mp, agno, *bno + *len - 1))
262 "start block 0x%x block count 0x%x", *bno, *len);
279 xfs_agblock_t bno = foundbno;
285 busy = xfs_extent_busy_trim(args, &bno, &len, busy_gen);
291 if (bno < args->min_agbno && bno + len > args->min_agbno) {
292 diff = args->min_agbno - bno;
294 bno += diff;
300 xfs_agblock_t aligned_bno = roundup(bno, args->alignment);
302 diff = aligned_bno - bno;
307 *resbno = bno;
742 xfs_agblock_t bno; /* alloc bno */
744 xfs_extlen_t diff; /* diff from search bno */
767 acur->bno = 0;
830 xfs_agblock_t bno, bnoa, bnew;
839 error = xfs_alloc_get_rec(cur, &bno, &len, &i);
854 busy = xfs_alloc_compute_aligned(args, bno, len, &bnoa, &lena,
894 acur->rec_bno = bno;
896 acur->bno = bnew;
911 trace_xfs_alloc_cur_check(args->mp, cur->bc_btnum, bno, len, diff,
929 ASSERT(acur->bno >= acur->rec_bno);
930 ASSERT(acur->bno + acur->len <= acur->rec_bno + acur->rec_len);
934 acur->rec_len, acur->bno, acur->len, 0);
938 args->agbno = acur->bno;
948 * bno optimized lookup to search for extents with ideal size and locality.
956 xfs_agblock_t bno;
971 error = xfs_alloc_get_rec(cur, &bno, &len, &i);
989 if (bno > args->agbno) {
992 error = xfs_alloc_get_rec(cur, &bno, &len, &i);
1123 * Type and bno are used to determine where in the allocation group the
1194 * Allocate a variable extent at exactly agno/bno.
1197 * Return the starting a.g. block (bno), or NULLAGBLOCK if we can't do it.
1224 * Lookup bno and minlen in the btree (minlen is irrelevant, really).
1225 * Look for the closest free block <= bno, it must contain bno
1363 * Search the by-bno and by-size btrees in parallel in search of an extent with
1496 xfs_agblock_t *bno,
1518 error = xfs_alloc_get_rec(acur->cnt, bno, len, &i);
1551 * Allocate a variable extent near bno in the allocation group agno.
1563 xfs_agblock_t bno;
1587 error = xfs_alloc_ag_vextent_small(args, acur.cnt, &bno,
1611 error = xfs_alloc_ag_vextent_lastblock(args, &acur, &bno, &len,
1662 xfs_btree_cur_t *bno_cur; /* cursor for bno btree */
1875 * Free the extent starting at agno/bno for length.
1882 xfs_agblock_t bno,
1905 error = xfs_rmap_free(tp, agbp, agno, bno, len, oinfo);
1918 if ((error = xfs_alloc_lookup_le(bno_cur, bno, len, &haveleft)))
1933 if (ltbno + ltlen < bno)
1941 if (XFS_IS_CORRUPT(mp, ltbno + ltlen > bno)) {
1966 if (bno + len < gtbno)
1974 if (XFS_IS_CORRUPT(mp, bno + len > gtbno)) {
2125 nbno = bno;
2135 nbno = bno;
2175 trace_xfs_free_extent(mp, agno, bno, len, type, haveleft, haveright);
2180 trace_xfs_free_extent(mp, agno, bno, len, type, -1, -1);
2261 /* space needed by-bno freespace btree */
2492 xfs_agblock_t bno; /* freelist block */
2579 error = xfs_alloc_get_freelist(tp, agbp, &bno, 0);
2584 xfs_defer_agfl_block(tp, args->agno, bno, &targs.oinfo);
2622 for (bno = targs.agbno; bno < targs.agbno + targs.len; bno++) {
2624 agflbp, bno, 0);
2656 xfs_agblock_t bno; /* block number returned */
2683 bno = be32_to_cpu(agfl_bno[be32_to_cpu(agf->agf_flfirst)]);
2703 *bnop = bno;
2777 xfs_agblock_t bno, /* block being freed */
2815 *blockp = cpu_to_be32(bno);
3123 * Start with allocation group given by bno.
3273 xfs_fsblock_t bno,
3281 xfs_agnumber_t agno = XFS_FSB_TO_AGNO(mp, bno);
3282 xfs_agblock_t agbno = XFS_FSB_TO_AGBNO(mp, bno);
3385 xfs_agblock_t bno,
3393 low.a.ar_startblock = bno;
3395 high.a.ar_startblock = bno + len - 1;