• Home
  • Raw
  • Download

Lines Matching refs:result

352 	u64 tmp, request, result;  in ufs_new_fragments()  local
423 result = ufs_alloc_fragments (inode, cgno, goal, count, err); in ufs_new_fragments()
424 if (result) { in ufs_new_fragments()
425 ufs_clear_frags(inode, result + oldcount, in ufs_new_fragments()
429 ufs_cpu_to_data_ptr(sb, p, result); in ufs_new_fragments()
435 UFSD("EXIT, result %llu\n", (unsigned long long)result); in ufs_new_fragments()
436 return result; in ufs_new_fragments()
442 result = ufs_add_fragments(inode, tmp, oldcount, newcount); in ufs_new_fragments()
443 if (result) { in ufs_new_fragments()
449 ufs_clear_frags(inode, result + oldcount, newcount - oldcount, in ufs_new_fragments()
452 UFSD("EXIT, result %llu\n", (unsigned long long)result); in ufs_new_fragments()
453 return result; in ufs_new_fragments()
468 result = ufs_alloc_fragments (inode, cgno, goal, request, err); in ufs_new_fragments()
469 if (result) { in ufs_new_fragments()
470 ufs_clear_frags(inode, result + oldcount, newcount - oldcount, in ufs_new_fragments()
475 uspi->s_sbbase + result, locked_page); in ufs_new_fragments()
478 ufs_cpu_to_data_ptr(sb, p, result); in ufs_new_fragments()
483 ufs_free_fragments (inode, result + newcount, request - newcount); in ufs_new_fragments()
485 UFSD("EXIT, result %llu\n", (unsigned long long)result); in ufs_new_fragments()
486 return result; in ufs_new_fragments()
595 u64 result; in ufs_alloc_fragments() local
645 result = ufs_alloccg_block (inode, ucpi, goal, err); in ufs_alloc_fragments()
646 if (result == INVBLOCK) in ufs_alloc_fragments()
656 result = ufs_alloccg_block (inode, ucpi, goal, err); in ufs_alloc_fragments()
657 if (result == INVBLOCK) in ufs_alloc_fragments()
659 goal = ufs_dtogd(uspi, result); in ufs_alloc_fragments()
672 result = ufs_bitmap_search (sb, ucpi, goal, allocsize); in ufs_alloc_fragments()
673 if (result == INVBLOCK) in ufs_alloc_fragments()
678 ubh_clrbit (UCPI_UBH(ucpi), ucpi->c_freeoff, result + i); in ufs_alloc_fragments()
695 result += cgno * uspi->s_fpg; in ufs_alloc_fragments()
696 UFSD("EXIT3, result %llu\n", (unsigned long long)result); in ufs_alloc_fragments()
697 return result; in ufs_alloc_fragments()
707 u64 result, blkno; in ufs_alloccg_block() local
726 result = goal; in ufs_alloccg_block()
731 result = ufs_bitmap_search (sb, ucpi, goal, uspi->s_fpb); in ufs_alloccg_block()
732 if (result == INVBLOCK) in ufs_alloccg_block()
734 ucpi->c_rotor = result; in ufs_alloccg_block()
738 blkno = ufs_fragstoblks(result); in ufs_alloccg_block()
748 unsigned cylno = ufs_cbtocylno((unsigned)result); in ufs_alloccg_block()
751 ufs_cbtorpos((unsigned)result)), 1); in ufs_alloccg_block()
755 UFSD("EXIT, result %llu\n", (unsigned long long)result); in ufs_alloccg_block()
757 return result; in ufs_alloccg_block()
812 u64 result; in ufs_bitmap_search() local
842 result = (start + length - loc) << 3; in ufs_bitmap_search()
843 ucpi->c_frotor = result; in ufs_bitmap_search()
849 for (end = result + 8; result < end; result += uspi->s_fpb) { in ufs_bitmap_search()
850 blockmap = ubh_blkmap(UCPI_UBH(ucpi), ucpi->c_freeoff, result); in ufs_bitmap_search()
857 (unsigned long long)result); in ufs_bitmap_search()
858 return result + pos; in ufs_bitmap_search()