* Renamed IOOperation::SetRequest() to Prepare().

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26557 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2008-07-22 00:45:25 +00:00
parent 8faff60c7f
commit 86cea5c5f1
4 changed files with 4 additions and 4 deletions
@@ -202,7 +202,7 @@ IOScheduler::_Scheduler()
// TODO: If the device has block size restrictions, we might need to use a
// bounce buffer.
IOOperation* operation = _GetOperation();
operation->SetRequest(request);
operation->Prepare(request);
operation->SetOriginalRange(request->Offset(), request->Length());
fIOCallback(fIOCallbackData, operation);
}
@@ -582,7 +582,7 @@ DMAResource::TranslateNext(IORequest* request, IOOperation* operation)
operation->SetPartial(partialBegin != 0, offset + dmaLength > requestEnd);
operation->SetUsesBounceBuffer(bounceLeft < fBounceBufferSize);
status_t error = operation->SetRequest(request);
status_t error = operation->Prepare(request);
if (error != B_OK)
return error;
@@ -226,7 +226,7 @@ IOOperation::Finish()
/*! Note: SetPartial() must be called first!
*/
status_t
IOOperation::SetRequest(IORequest* request)
IOOperation::Prepare(IORequest* request)
{
if (fParent != NULL)
fParent->RemoveOperation(this);
@@ -100,7 +100,7 @@ public:
bool Finish();
// returns true, if it can be recycled
status_t SetRequest(IORequest* request);
status_t Prepare(IORequest* request);
void SetOriginalRange(off_t offset, size_t length);
// also sets range
void SetRange(off_t offset, size_t length);