Just a commentary changed.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10401 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -648,6 +648,7 @@ BlockAllocator::Allocate(Transaction &transaction, Inode *inode, off_t numBlocks
|
|||||||
// b) reduce the maximum amount of blocks per block_run, so that the remaining
|
// b) reduce the maximum amount of blocks per block_run, so that the remaining
|
||||||
// number of free blocks can be used in a useful manner (like 4 blocks) -
|
// number of free blocks can be used in a useful manner (like 4 blocks) -
|
||||||
// but that would also reduce the maximum file size
|
// but that would also reduce the maximum file size
|
||||||
|
// c) have BlockRun::Length() return (length + 1).
|
||||||
if (numBlocks > MAX_BLOCK_RUN_LENGTH)
|
if (numBlocks > MAX_BLOCK_RUN_LENGTH)
|
||||||
numBlocks = MAX_BLOCK_RUN_LENGTH;
|
numBlocks = MAX_BLOCK_RUN_LENGTH;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user