Lines Matching refs:newBlockCount

5122  *	newBlockCount - The blockCount of the extent to be split after 
5128 hfs_split_extent(struct hfs_reclaim_extent_info *extent_info, uint32_t newBlockCount)
5153 if (newBlockCount == 0) {
5155 printf ("hfs_split_extent: No splitting required for newBlockCount=0\n");
5161 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);
5188 shift_extent.startBlock = extents[index].startBlock + newBlockCount;
5189 shift_extent.blockCount = extents[index].blockCount - newBlockCount;
5231 extents[index+1].startBlock = extents[index].startBlock + newBlockCount;
5232 extents[index+1].blockCount = extents[index].blockCount - newBlockCount;
5235 extents[index].blockCount = newBlockCount;
5557 u_int32_t newBlockCount;
5599 newBlockCount = allocLimit - oldStartBlock;
5603 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);
5617 remainder_blocks = newBlockCount % (node_size / hfsmp->blockSize);
5619 newBlockCount -= remainder_blocks;
5621 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);
5625 /* The newBlockCount is zero because of rounding-down so that
5630 if (newBlockCount == 0) {
5632 printf ("hfs_reclaim_extent: After round-down newBlockCount=0, skip split, relocate full extent\n");
5644 error = hfs_split_extent(extent_info, newBlockCount);
5652 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);
5672 &newStartBlock, &newBlockCount);
5678 alloc_flags, &newStartBlock, &newBlockCount);
5687 alloc_flags, &newStartBlock, &newBlockCount);
5701 remainder_blocks = newBlockCount % (node_size / hfsmp->blockSize);
5703 roundedBlockCount = newBlockCount - remainder_blocks;
5706 newBlockCount - roundedBlockCount,
5708 newBlockCount = roundedBlockCount;
5710 printf ("hfs_reclaim_extent: Fixing extent block count, node_blks=%u, old=%u, new=%u\n", node_size/hfsmp->blockSize, newBlockCount + remainder_blocks, newBlockCount);
5712 if (newBlockCount == 0) {
5727 error = hfs_split_extent(extent_info, newBlockCount);
5732 oldBlockCount = newBlockCount;
5742 newStartBlock, newBlockCount, context);
5744 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);
5781 extent_info->blocks_relocated += newBlockCount;
5784 printf ("hfs_reclaim_extent: Relocated record:%u %u:(%u,%u) to (%u,%u)\n", extent_info->overflow_count, index, oldStartBlock, oldBlockCount, newStartBlock, newBlockCount);
5790 BlockDeallocate(hfsmp, newStartBlock, newBlockCount, HFS_ALLOC_SKIPFREEBLKS);
5794 extent_info->cur_blockCount += newBlockCount;
6159 u_int32_t newBlockCount;
6183 jibp->size = SWAP_BE64((u_int64_t)args->newBlockCount * hfsmp->blockSize);
6225 u_int32_t newBlockCount;
6265 &newStartBlock, &newBlockCount);
6270 if (newBlockCount != jnlBlockCount) {
6271 printf("hfs_relocate_journal_file: newBlockCount != jnlBlockCount (%u, %u)\n", newBlockCount, jnlBlockCount);
6290 journal_fork.cf_size = newBlockCount * hfsmp->blockSize;
6292 journal_fork.cf_extents[0].blockCount = newBlockCount;
6293 journal_fork.cf_blocks = newBlockCount;
6310 callback_args.newBlockCount = newBlockCount;
6313 (off_t)newBlockCount*hfsmp->blockSize, 0,
6321 printf ("hfs_relocate_journal_file: Successfully relocated journal from (%u,%u) to (%u,%u)\n", oldStartBlock, oldBlockCount, newStartBlock, newBlockCount);
6324 hfsmp->jnl_size = (off_t)newBlockCount * hfsmp->blockSize;
6336 journal_err = BlockDeallocate(hfsmp, newStartBlock, newBlockCount, HFS_ALLOC_SKIPFREEBLKS);