Lines Matching refs:fbno
413 xfs_agblock_t fbno, /* starting block of free extent */ in xfs_alloc_fixup_trees() argument
437 i == 1 && nfbno1 == fbno && nflen1 == flen); in xfs_alloc_fixup_trees()
440 if ((error = xfs_alloc_lookup_eq(cnt_cur, fbno, flen, &i))) in xfs_alloc_fixup_trees()
452 i == 1 && nfbno1 == fbno && nflen1 == flen); in xfs_alloc_fixup_trees()
455 if ((error = xfs_alloc_lookup_eq(bno_cur, fbno, flen, &i))) in xfs_alloc_fixup_trees()
478 if (rbno == fbno && rlen == flen) in xfs_alloc_fixup_trees()
480 else if (rbno == fbno) { in xfs_alloc_fixup_trees()
484 } else if (rbno + rlen == fbno + flen) { in xfs_alloc_fixup_trees()
485 nfbno1 = fbno; in xfs_alloc_fixup_trees()
489 nfbno1 = fbno; in xfs_alloc_fixup_trees()
490 nflen1 = rbno - fbno; in xfs_alloc_fixup_trees()
492 nflen2 = (fbno + flen) - nfbno2; in xfs_alloc_fixup_trees()
712 xfs_agblock_t fbno = NULLAGBLOCK; in xfs_alloc_ag_vextent_small() local
727 error = xfs_alloc_get_rec(ccur, &fbno, &flen, &i); in xfs_alloc_ag_vextent_small()
740 error = xfs_alloc_get_freelist(args->tp, args->agbp, &fbno, 0); in xfs_alloc_ag_vextent_small()
743 if (fbno == NULLAGBLOCK) in xfs_alloc_ag_vextent_small()
746 xfs_extent_busy_reuse(args->mp, args->agno, fbno, 1, in xfs_alloc_ag_vextent_small()
752 bp = xfs_btree_get_bufs(args->mp, args->tp, args->agno, fbno); in xfs_alloc_ag_vextent_small()
759 *fbnop = args->agbno = fbno; in xfs_alloc_ag_vextent_small()
762 fbno < be32_to_cpu(XFS_BUF_TO_AGF(args->agbp)->agf_length), in xfs_alloc_ag_vextent_small()
771 error = xfs_rmap_free(args->tp, args->agbp, args->agno, fbno, 1, in xfs_alloc_ag_vextent_small()
788 *fbnop = fbno; in xfs_alloc_ag_vextent_small()
885 xfs_agblock_t fbno; /* start block of found extent */ in xfs_alloc_ag_vextent_exact() local
915 error = xfs_alloc_get_rec(bno_cur, &fbno, &flen, &i); in xfs_alloc_ag_vextent_exact()
919 ASSERT(fbno <= args->agbno); in xfs_alloc_ag_vextent_exact()
924 tbno = fbno; in xfs_alloc_ag_vextent_exact()
959 error = xfs_alloc_fixup_trees(cnt_cur, bno_cur, fbno, flen, args->agbno, in xfs_alloc_ag_vextent_exact()
1496 xfs_agblock_t fbno; /* start of found freespace */ in xfs_alloc_ag_vextent_size() local
1529 &fbno, &flen, &i); in xfs_alloc_ag_vextent_size()
1538 busy = xfs_alloc_compute_aligned(args, fbno, flen, &rbno, in xfs_alloc_ag_vextent_size()
1545 error = xfs_alloc_get_rec(cnt_cur, &fbno, &flen, &i); in xfs_alloc_ag_vextent_size()
1550 busy = xfs_alloc_compute_aligned(args, fbno, flen, in xfs_alloc_ag_vextent_size()
1583 (rlen <= flen && rbno + rlen <= fbno + flen), error0); in xfs_alloc_ag_vextent_size()
1593 bestfbno = fbno; in xfs_alloc_ag_vextent_size()
1599 if ((error = xfs_alloc_get_rec(cnt_cur, &fbno, &flen, in xfs_alloc_ag_vextent_size()
1605 busy = xfs_alloc_compute_aligned(args, fbno, flen, in xfs_alloc_ag_vextent_size()
1609 (rlen <= flen && rbno + rlen <= fbno + flen), in xfs_alloc_ag_vextent_size()
1615 bestfbno = fbno; in xfs_alloc_ag_vextent_size()
1627 fbno = bestfbno; in xfs_alloc_ag_vextent_size()
1652 if ((error = xfs_alloc_fixup_trees(cnt_cur, bno_cur, fbno, flen, in xfs_alloc_ag_vextent_size()