Lines Matching refs:goal

341 			   u64 goal, unsigned count, int *err,  in ufs_new_fragments()  argument
352 (unsigned long long)goal, count); in ufs_new_fragments()
408 if (goal >= uspi->s_size) in ufs_new_fragments()
409 goal = 0; in ufs_new_fragments()
410 if (goal == 0) in ufs_new_fragments()
413 cgno = ufs_dtog(uspi, goal); in ufs_new_fragments()
419 result = ufs_alloc_fragments (inode, cgno, goal, count, err); in ufs_new_fragments()
464 result = ufs_alloc_fragments (inode, cgno, goal, request, err); in ufs_new_fragments()
584 u64 goal, unsigned count, int *err) in ufs_alloc_fragments() argument
594 inode->i_ino, cgno, (unsigned long long)goal, count); in ufs_alloc_fragments()
641 result = ufs_alloccg_block (inode, ucpi, goal, err); in ufs_alloc_fragments()
652 result = ufs_alloccg_block (inode, ucpi, goal, err); in ufs_alloc_fragments()
655 goal = ufs_dtogd(uspi, result); in ufs_alloc_fragments()
657 ubh_setbit (UCPI_UBH(ucpi), ucpi->c_freeoff, goal + i); in ufs_alloc_fragments()
668 result = ufs_bitmap_search (sb, ucpi, goal, allocsize); in ufs_alloc_fragments()
698 u64 goal, int *err) in ufs_alloccg_block() argument
705 UFSD("ENTER, goal %llu\n", (unsigned long long)goal); in ufs_alloccg_block()
711 if (goal == 0) { in ufs_alloccg_block()
712 goal = ucpi->c_rotor; in ufs_alloccg_block()
715 goal = ufs_blknum (goal); in ufs_alloccg_block()
716 goal = ufs_dtogd(uspi, goal); in ufs_alloccg_block()
721 if (ubh_isblockset(UCPI_UBH(ucpi), ucpi->c_freeoff, ufs_fragstoblks(goal))) { in ufs_alloccg_block()
722 result = goal; in ufs_alloccg_block()
727 result = ufs_bitmap_search (sb, ucpi, goal, uspi->s_fpb); in ufs_alloccg_block()
793 u64 goal, unsigned count) in ufs_bitmap_search() argument
811 (unsigned long long)goal, count); in ufs_bitmap_search()
813 if (goal) in ufs_bitmap_search()
814 start = ufs_dtogd(uspi, goal) >> 3; in ufs_bitmap_search()