Lines Matching defs:newBlockCount

5194  *	newBlockCount - The blockCount of the extent to be split after 
5200 hfs_split_extent(struct hfs_reclaim_extent_info *extent_info, uint32_t newBlockCount)
5225 if (newBlockCount == 0) {
5227 printf ("hfs_split_extent: No splitting required for newBlockCount=0\n");
5233 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);
5260 shift_extent.startBlock = extents[index].startBlock + newBlockCount;
5261 shift_extent.blockCount = extents[index].blockCount - newBlockCount;
5303 extents[index+1].startBlock = extents[index].startBlock + newBlockCount;
5304 extents[index+1].blockCount = extents[index].blockCount - newBlockCount;
5307 extents[index].blockCount = newBlockCount;
5629 u_int32_t newBlockCount;
5671 newBlockCount = allocLimit - oldStartBlock;
5675 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);
5689 remainder_blocks = newBlockCount % (node_size / hfsmp->blockSize);
5691 newBlockCount -= remainder_blocks;
5693 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);
5697 /* The newBlockCount is zero because of rounding-down so that
5702 if (newBlockCount == 0) {
5704 printf ("hfs_reclaim_extent: After round-down newBlockCount=0, skip split, relocate full extent\n");
5716 error = hfs_split_extent(extent_info, newBlockCount);
5724 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);
5744 &newStartBlock, &newBlockCount);
5750 alloc_flags, &newStartBlock, &newBlockCount);
5761 alloc_flags, &newStartBlock, &newBlockCount);
5775 remainder_blocks = newBlockCount % (node_size / hfsmp->blockSize);
5777 roundedBlockCount = newBlockCount - remainder_blocks;
5780 newBlockCount - roundedBlockCount,
5782 newBlockCount = roundedBlockCount;
5784 printf ("hfs_reclaim_extent: Fixing extent block count, node_blks=%u, old=%u, new=%u\n", node_size/hfsmp->blockSize, newBlockCount + remainder_blocks, newBlockCount);
5786 if (newBlockCount == 0) {
5801 error = hfs_split_extent(extent_info, newBlockCount);
5806 oldBlockCount = newBlockCount;
5816 newStartBlock, newBlockCount, context);
5818 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);
5855 extent_info->blocks_relocated += newBlockCount;
5858 printf ("hfs_reclaim_extent: Relocated record:%u %u:(%u,%u) to (%u,%u)\n", extent_info->overflow_count, index, oldStartBlock, oldBlockCount, newStartBlock, newBlockCount);
5864 BlockDeallocate(hfsmp, newStartBlock, newBlockCount, HFS_ALLOC_SKIPFREEBLKS);
5868 extent_info->cur_blockCount += newBlockCount;
6233 u_int32_t newBlockCount;
6257 jibp->size = SWAP_BE64((u_int64_t)args->newBlockCount * hfsmp->blockSize);
6299 u_int32_t newBlockCount;
6339 &newStartBlock, &newBlockCount);
6344 if (newBlockCount != jnlBlockCount) {
6345 printf("hfs_relocate_journal_file: newBlockCount != jnlBlockCount (%u, %u)\n", newBlockCount, jnlBlockCount);
6364 journal_fork.cf_size = newBlockCount * hfsmp->blockSize;
6366 journal_fork.cf_extents[0].blockCount = newBlockCount;
6367 journal_fork.cf_blocks = newBlockCount;
6384 callback_args.newBlockCount = newBlockCount;
6387 (off_t)newBlockCount*hfsmp->blockSize, 0,
6395 printf ("hfs_relocate_journal_file: Successfully relocated journal from (%u,%u) to (%u,%u)\n", oldStartBlock, oldBlockCount, newStartBlock, newBlockCount);
6398 hfsmp->jnl_size = (off_t)newBlockCount * hfsmp->blockSize;
6410 journal_err = BlockDeallocate(hfsmp, newStartBlock, newBlockCount, HFS_ALLOC_SKIPFREEBLKS);