Lines Matching refs:fbno
476 xfs_agblock_t fbno, /* starting block of free extent */ in xfs_alloc_fixup_trees() argument
501 nfbno1 != fbno || in xfs_alloc_fixup_trees()
506 if ((error = xfs_alloc_lookup_eq(cnt_cur, fbno, flen, &i))) in xfs_alloc_fixup_trees()
520 nfbno1 != fbno || in xfs_alloc_fixup_trees()
525 if ((error = xfs_alloc_lookup_eq(bno_cur, fbno, flen, &i))) in xfs_alloc_fixup_trees()
551 if (rbno == fbno && rlen == flen) in xfs_alloc_fixup_trees()
553 else if (rbno == fbno) { in xfs_alloc_fixup_trees()
557 } else if (rbno + rlen == fbno + flen) { in xfs_alloc_fixup_trees()
558 nfbno1 = fbno; in xfs_alloc_fixup_trees()
562 nfbno1 = fbno; in xfs_alloc_fixup_trees()
563 nflen1 = rbno - fbno; in xfs_alloc_fixup_trees()
565 nflen2 = (fbno + flen) - nfbno2; in xfs_alloc_fixup_trees()
1084 xfs_agblock_t fbno = NULLAGBLOCK; in xfs_alloc_ag_vextent_small() local
1099 error = xfs_alloc_get_rec(ccur, &fbno, &flen, &i); in xfs_alloc_ag_vextent_small()
1115 &fbno, 0); in xfs_alloc_ag_vextent_small()
1118 if (fbno == NULLAGBLOCK) in xfs_alloc_ag_vextent_small()
1121 xfs_extent_busy_reuse(args->mp, args->pag, fbno, 1, in xfs_alloc_ag_vextent_small()
1128 XFS_AGB_TO_DADDR(args->mp, args->agno, fbno), in xfs_alloc_ag_vextent_small()
1134 *fbnop = args->agbno = fbno; in xfs_alloc_ag_vextent_small()
1136 if (XFS_IS_CORRUPT(args->mp, fbno >= be32_to_cpu(agf->agf_length))) { in xfs_alloc_ag_vextent_small()
1147 error = xfs_rmap_free(args->tp, args->agbp, args->pag, fbno, 1, in xfs_alloc_ag_vextent_small()
1164 *fbnop = fbno; in xfs_alloc_ag_vextent_small()
1189 xfs_agblock_t fbno; /* start block of found extent */ in xfs_alloc_ag_vextent_exact() local
1219 error = xfs_alloc_get_rec(bno_cur, &fbno, &flen, &i); in xfs_alloc_ag_vextent_exact()
1226 ASSERT(fbno <= args->agbno); in xfs_alloc_ag_vextent_exact()
1231 tbno = fbno; in xfs_alloc_ag_vextent_exact()
1265 error = xfs_alloc_fixup_trees(cnt_cur, bno_cur, fbno, flen, args->agbno, in xfs_alloc_ag_vextent_exact()
1660 xfs_agblock_t fbno; /* start of found freespace */ in xfs_alloc_ag_vextent_size() local
1695 &fbno, &flen, &i); in xfs_alloc_ag_vextent_size()
1704 busy = xfs_alloc_compute_aligned(args, fbno, flen, &rbno, in xfs_alloc_ag_vextent_size()
1711 error = xfs_alloc_get_rec(cnt_cur, &fbno, &flen, &i); in xfs_alloc_ag_vextent_size()
1719 busy = xfs_alloc_compute_aligned(args, fbno, flen, in xfs_alloc_ag_vextent_size()
1760 rbno + rlen > fbno + flen))) { in xfs_alloc_ag_vextent_size()
1773 bestfbno = fbno; in xfs_alloc_ag_vextent_size()
1779 if ((error = xfs_alloc_get_rec(cnt_cur, &fbno, &flen, in xfs_alloc_ag_vextent_size()
1788 busy = xfs_alloc_compute_aligned(args, fbno, flen, in xfs_alloc_ag_vextent_size()
1794 rbno + rlen > fbno + flen))) { in xfs_alloc_ag_vextent_size()
1802 bestfbno = fbno; in xfs_alloc_ag_vextent_size()
1817 fbno = bestfbno; in xfs_alloc_ag_vextent_size()
1857 if ((error = xfs_alloc_fixup_trees(cnt_cur, bno_cur, fbno, flen, in xfs_alloc_ag_vextent_size()
2575 xfs_agblock_t fbno; in xfs_exact_minlen_extent_available() local
2590 error = xfs_alloc_get_rec(cnt_cur, &fbno, &flen, stat); in xfs_exact_minlen_extent_available()