From bc62229fcefaadafad1820c6409c24668e620f4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Wed, 21 Aug 2002 15:51:03 +0000 Subject: [PATCH] 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 --- src/add-ons/kernel/file_systems/bfs/BlockAllocator.cpp | 2 +- src/add-ons/kernel/file_systems/bfs/BlockAllocator.h | 2 +- src/add-ons/kernel/file_systems/bfs/Volume.h | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/add-ons/kernel/file_systems/bfs/BlockAllocator.cpp b/src/add-ons/kernel/file_systems/bfs/BlockAllocator.cpp index 027f2fb1d5..deb22895c9 100644 --- a/src/add-ons/kernel/file_systems/bfs/BlockAllocator.cpp +++ b/src/add-ons/kernel/file_systems/bfs/BlockAllocator.cpp @@ -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); diff --git a/src/add-ons/kernel/file_systems/bfs/BlockAllocator.h b/src/add-ons/kernel/file_systems/bfs/BlockAllocator.h index 8f2ea0ba26..52c9a6ae3f 100644 --- a/src/add-ons/kernel/file_systems/bfs/BlockAllocator.h +++ b/src/add-ons/kernel/file_systems/bfs/BlockAllocator.h @@ -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); diff --git a/src/add-ons/kernel/file_systems/bfs/Volume.h b/src/add-ons/kernel/file_systems/bfs/Volume.h index aab8fcd147..f5a40f02ee 100644 --- a/src/add-ons/kernel/file_systems/bfs/Volume.h +++ b/src/add-ons/kernel/file_systems/bfs/Volume.h @@ -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); }