Lines Matching refs:fbno
431 xfs_agblock_t fbno, /* starting block of free extent */ in xfs_alloc_fixup_trees() argument
456 nfbno1 != fbno || in xfs_alloc_fixup_trees()
461 if ((error = xfs_alloc_lookup_eq(cnt_cur, fbno, flen, &i))) in xfs_alloc_fixup_trees()
475 nfbno1 != fbno || in xfs_alloc_fixup_trees()
480 if ((error = xfs_alloc_lookup_eq(bno_cur, fbno, flen, &i))) in xfs_alloc_fixup_trees()
506 if (rbno == fbno && rlen == flen) in xfs_alloc_fixup_trees()
508 else if (rbno == fbno) { in xfs_alloc_fixup_trees()
512 } else if (rbno + rlen == fbno + flen) { in xfs_alloc_fixup_trees()
513 nfbno1 = fbno; in xfs_alloc_fixup_trees()
517 nfbno1 = fbno; in xfs_alloc_fixup_trees()
518 nflen1 = rbno - fbno; in xfs_alloc_fixup_trees()
520 nflen2 = (fbno + flen) - nfbno2; in xfs_alloc_fixup_trees()
1030 xfs_agblock_t fbno = NULLAGBLOCK; in xfs_alloc_ag_vextent_small() local
1045 error = xfs_alloc_get_rec(ccur, &fbno, &flen, &i); in xfs_alloc_ag_vextent_small()
1060 error = xfs_alloc_get_freelist(args->tp, args->agbp, &fbno, 0); in xfs_alloc_ag_vextent_small()
1063 if (fbno == NULLAGBLOCK) in xfs_alloc_ag_vextent_small()
1066 xfs_extent_busy_reuse(args->mp, args->pag, fbno, 1, in xfs_alloc_ag_vextent_small()
1073 XFS_AGB_TO_DADDR(args->mp, args->agno, fbno), in xfs_alloc_ag_vextent_small()
1079 *fbnop = args->agbno = fbno; in xfs_alloc_ag_vextent_small()
1081 if (XFS_IS_CORRUPT(args->mp, fbno >= be32_to_cpu(agf->agf_length))) { in xfs_alloc_ag_vextent_small()
1092 error = xfs_rmap_free(args->tp, args->agbp, args->pag, fbno, 1, in xfs_alloc_ag_vextent_small()
1109 *fbnop = fbno; in xfs_alloc_ag_vextent_small()
1206 xfs_agblock_t fbno; /* start block of found extent */ in xfs_alloc_ag_vextent_exact() local
1236 error = xfs_alloc_get_rec(bno_cur, &fbno, &flen, &i); in xfs_alloc_ag_vextent_exact()
1243 ASSERT(fbno <= args->agbno); in xfs_alloc_ag_vextent_exact()
1248 tbno = fbno; in xfs_alloc_ag_vextent_exact()
1282 error = xfs_alloc_fixup_trees(cnt_cur, bno_cur, fbno, flen, args->agbno, in xfs_alloc_ag_vextent_exact()
1664 xfs_agblock_t fbno; /* start of found freespace */ in xfs_alloc_ag_vextent_size() local
1696 &fbno, &flen, &i); in xfs_alloc_ag_vextent_size()
1705 busy = xfs_alloc_compute_aligned(args, fbno, flen, &rbno, in xfs_alloc_ag_vextent_size()
1712 error = xfs_alloc_get_rec(cnt_cur, &fbno, &flen, &i); in xfs_alloc_ag_vextent_size()
1720 busy = xfs_alloc_compute_aligned(args, fbno, flen, in xfs_alloc_ag_vextent_size()
1755 rbno + rlen > fbno + flen))) { in xfs_alloc_ag_vextent_size()
1768 bestfbno = fbno; in xfs_alloc_ag_vextent_size()
1774 if ((error = xfs_alloc_get_rec(cnt_cur, &fbno, &flen, in xfs_alloc_ag_vextent_size()
1783 busy = xfs_alloc_compute_aligned(args, fbno, flen, in xfs_alloc_ag_vextent_size()
1789 rbno + rlen > fbno + flen))) { in xfs_alloc_ag_vextent_size()
1797 bestfbno = fbno; in xfs_alloc_ag_vextent_size()
1812 fbno = bestfbno; in xfs_alloc_ag_vextent_size()
1840 if ((error = xfs_alloc_fixup_trees(cnt_cur, bno_cur, fbno, flen, in xfs_alloc_ag_vextent_size()
2542 xfs_agblock_t fbno; in xfs_exact_minlen_extent_available() local
2557 error = xfs_alloc_get_rec(cnt_cur, &fbno, &flen, stat); in xfs_exact_minlen_extent_available()