Volume::Free(), and BlockAllocator::Free() now pass the block_run by value
rather than by reference. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@848 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
3155eae222
commit
bc62229fce
@ -454,7 +454,7 @@ BlockAllocator::Allocate(Transaction *transaction,const Inode *inode, off_t numB
|
||||
|
||||
|
||||
status_t
|
||||
BlockAllocator::Free(Transaction *transaction,block_run &run)
|
||||
BlockAllocator::Free(Transaction *transaction, block_run run)
|
||||
{
|
||||
Locker lock(fLock);
|
||||
|
||||
|
@ -27,7 +27,7 @@ class BlockAllocator {
|
||||
|
||||
status_t AllocateForInode(Transaction *transaction,const block_run *parent,mode_t type,block_run &run);
|
||||
status_t Allocate(Transaction *transaction,const Inode *inode,off_t numBlocks,block_run &run,uint16 minimum = 1);
|
||||
status_t Free(Transaction *transaction,block_run &run);
|
||||
status_t Free(Transaction *transaction, block_run run);
|
||||
|
||||
status_t AllocateBlocks(Transaction *transaction,int32 group, uint16 start, uint16 numBlocks, uint16 minimum, block_run &run);
|
||||
|
||||
|
@ -82,7 +82,7 @@ class Volume {
|
||||
status_t AllocateForInode(Transaction *transaction,const Inode *parent,mode_t type,block_run &run);
|
||||
status_t AllocateForInode(Transaction *transaction,const block_run *parent,mode_t type,block_run &run);
|
||||
status_t Allocate(Transaction *transaction,const Inode *inode,off_t numBlocks,block_run &run,uint16 minimum = 1);
|
||||
status_t Free(Transaction *transaction,block_run &run);
|
||||
status_t Free(Transaction *transaction, block_run run);
|
||||
|
||||
#ifdef DEBUG
|
||||
BlockAllocator &Allocator() { return fBlockAllocator; }
|
||||
@ -144,9 +144,9 @@ Volume::Allocate(Transaction *transaction, const Inode *inode, off_t numBlocks,
|
||||
|
||||
|
||||
inline status_t
|
||||
Volume::Free(Transaction *transaction, block_run &run)
|
||||
Volume::Free(Transaction *transaction, block_run run)
|
||||
{
|
||||
return fBlockAllocator.Free(transaction,run);
|
||||
return fBlockAllocator.Free(transaction, run);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user