Lines Matching defs:newBlockCount

1243  *	newBlockCount - The blockCount of the extent to be split after
1249 hfs_split_extent(struct hfs_reclaim_extent_info *extent_info, uint32_t newBlockCount)
1274 if (newBlockCount == 0) {
1276 printf ("hfs_split_extent: No splitting required for newBlockCount=0\n");
1282 printf ("hfs_split_extent: Split record:%u recStartBlock=%u %u:(%u,%u) for %u blocks\n", extent_info->overflow_count, extent_info->recStartBlock, index, extents[index].startBlock, extents[index].blockCount, newBlockCount);
1309 shift_extent.startBlock = extents[index].startBlock + newBlockCount;
1310 shift_extent.blockCount = extents[index].blockCount - newBlockCount;
1352 extents[index+1].startBlock = extents[index].startBlock + newBlockCount;
1353 extents[index+1].blockCount = extents[index].blockCount - newBlockCount;
1356 extents[index].blockCount = newBlockCount;
1678 u_int32_t newBlockCount;
1720 newBlockCount = allocLimit - oldStartBlock;
1724 printf ("hfs_reclaim_extent: Split straddling extent %u:(%u,%u) for %u blocks\n", idx, extent_info->extents[idx].startBlock, extent_info->extents[idx].blockCount, newBlockCount);
1738 remainder_blocks = newBlockCount % (node_size / hfsmp->blockSize);
1740 newBlockCount -= remainder_blocks;
1742 printf ("hfs_reclaim_extent: Round-down newBlockCount to be multiple of nodeSize, node_allocblks=%u, old=%u, new=%u\n", node_size/hfsmp->blockSize, newBlockCount + remainder_blocks, newBlockCount);
1746 /* The newBlockCount is zero because of rounding-down so that
1751 if (newBlockCount == 0) {
1753 printf ("hfs_reclaim_extent: After round-down newBlockCount=0, skip split, relocate full extent\n");
1765 error = hfs_split_extent(extent_info, newBlockCount);
1773 printf ("hfs_reclaim_extent: Split straddling extent %u:(%u,%u) for %u blocks failed, relocate full extent\n", idx, extent_info->extents[idx].startBlock, extent_info->extents[idx].blockCount, newBlockCount);
1793 &newStartBlock, &newBlockCount);
1799 alloc_flags, &newStartBlock, &newBlockCount);
1817 alloc_flags, &newStartBlock, &newBlockCount);
1831 if (newBlockCount != oldBlockCount) {
1841 remainder_blocks = newBlockCount % (node_size / hfsmp->blockSize);
1843 roundedBlockCount = newBlockCount - remainder_blocks;
1846 newBlockCount - roundedBlockCount,
1848 newBlockCount = roundedBlockCount;
1850 printf ("hfs_reclaim_extent: Fixing extent block count, node_blks=%u, old=%u, new=%u\n", node_size/hfsmp->blockSize, newBlockCount + remainder_blocks, newBlockCount);
1852 if (newBlockCount == 0) {
1867 error = hfs_split_extent(extent_info, newBlockCount);
1872 oldBlockCount = newBlockCount;
1873 } /* end oldBlockCount != newBlockCount */
1884 newStartBlock, newBlockCount, context);
1886 printf ("hfs_reclaim_extent: fileID=%u start=%u, %u:(%u,%u)=>(%u,%u) hfs_copy_extent error=%d\n", extent_info->fileID, extent_info->recStartBlock, index, oldStartBlock, oldBlockCount, newStartBlock, newBlockCount, error);
1923 extent_info->blocks_relocated += newBlockCount;
1926 printf ("hfs_reclaim_extent: Relocated record:%u %u:(%u,%u) to (%u,%u)\n", extent_info->overflow_count, index, oldStartBlock, oldBlockCount, newStartBlock, newBlockCount);
1932 BlockDeallocate(hfsmp, newStartBlock, newBlockCount, HFS_ALLOC_SKIPFREEBLKS);
1936 extent_info->cur_blockCount += newBlockCount;
2301 u_int32_t newBlockCount;
2325 jibp->size = SWAP_BE64((u_int64_t)args->newBlockCount * hfsmp->blockSize);
2367 u_int32_t newBlockCount;
2407 &newStartBlock, &newBlockCount);
2412 if (newBlockCount != jnlBlockCount) {
2413 printf("hfs_relocate_journal_file: newBlockCount != jnlBlockCount (%u, %u)\n", newBlockCount, jnlBlockCount);
2432 journal_fork.cf_size = newBlockCount * hfsmp->blockSize;
2434 journal_fork.cf_extents[0].blockCount = newBlockCount;
2435 journal_fork.cf_blocks = newBlockCount;
2452 callback_args.newBlockCount = newBlockCount;
2455 (off_t)newBlockCount*hfsmp->blockSize, 0,
2463 printf ("hfs_relocate_journal_file: Successfully relocated journal from (%u,%u) to (%u,%u)\n", oldStartBlock, oldBlockCount, newStartBlock, newBlockCount);
2466 hfsmp->jnl_size = (off_t)newBlockCount * hfsmp->blockSize;
2478 journal_err = BlockDeallocate(hfsmp, newStartBlock, newBlockCount, HFS_ALLOC_SKIPFREEBLKS);