mirror of
https://review.haiku-os.org/haiku
synced 2024-11-23 07:18:40 +01:00
kernel/block_cache: Correct callback parameter type.
Should fix x86 32-bit build.
This commit is contained in:
parent
d43d69f7da
commit
f3884d7da0
8
src/system/kernel/cache/block_cache.cpp
vendored
8
src/system/kernel/cache/block_cache.cpp
vendored
@ -345,7 +345,7 @@ public:
|
|||||||
private:
|
private:
|
||||||
static void _IOFinishedCallback(void* cookie, io_request* request,
|
static void _IOFinishedCallback(void* cookie, io_request* request,
|
||||||
status_t status, bool partialTransfer,
|
status_t status, bool partialTransfer,
|
||||||
size_t bytesTransferred);
|
generic_size_t bytesTransferred);
|
||||||
void _IOFinished(status_t status, size_t bytesTransferred);
|
void _IOFinished(status_t status, size_t bytesTransferred);
|
||||||
|
|
||||||
void _RemoveAllocated(size_t unbusyCount, size_t removeCount);
|
void _RemoveAllocated(size_t unbusyCount, size_t removeCount);
|
||||||
@ -1569,7 +1569,7 @@ BlockPrefetcher::ReadAsync(MutexLocker& cacheLocker)
|
|||||||
|
|
||||||
/*static*/ void
|
/*static*/ void
|
||||||
BlockPrefetcher::_IOFinishedCallback(void* cookie, io_request* request, status_t status,
|
BlockPrefetcher::_IOFinishedCallback(void* cookie, io_request* request, status_t status,
|
||||||
bool partialTransfer, size_t bytesTransferred)
|
bool partialTransfer, generic_size_t bytesTransferred)
|
||||||
{
|
{
|
||||||
TRACE(("BlockPrefetcher::_IOFinishedCallback: status %s, partial %d\n",
|
TRACE(("BlockPrefetcher::_IOFinishedCallback: status %s, partial %d\n",
|
||||||
strerror(status), partialTransfer));
|
strerror(status), partialTransfer));
|
||||||
@ -1578,7 +1578,7 @@ BlockPrefetcher::_IOFinishedCallback(void* cookie, io_request* request, status_t
|
|||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
BlockPrefetcher::_IOFinished(status_t status, size_t bytesTransferred)
|
BlockPrefetcher::_IOFinished(status_t status, generic_size_t bytesTransferred)
|
||||||
{
|
{
|
||||||
MutexLocker locker(&fCache->lock);
|
MutexLocker locker(&fCache->lock);
|
||||||
|
|
||||||
@ -1590,7 +1590,7 @@ BlockPrefetcher::_IOFinished(status_t status, size_t bytesTransferred)
|
|||||||
" bytes in attempt to read %" B_PRIuSIZE " blocks (start block %" B_PRIdOFF "): %s\n",
|
" bytes in attempt to read %" B_PRIuSIZE " blocks (start block %" B_PRIdOFF "): %s\n",
|
||||||
bytesTransferred, fNumAllocated, fBlockNumber, strerror(status));
|
bytesTransferred, fNumAllocated, fBlockNumber, strerror(status));
|
||||||
} else {
|
} else {
|
||||||
for (size_t i = 0; i < fNumAllocated; ++i) {
|
for (size_t i = 0; i < fNumAllocated; i++) {
|
||||||
TB(Read(cache, fBlockNumber + i));
|
TB(Read(cache, fBlockNumber + i));
|
||||||
mark_block_unbusy_reading(fCache, fBlocks[i]);
|
mark_block_unbusy_reading(fCache, fBlocks[i]);
|
||||||
fBlocks[i]->last_accessed = system_time() / 1000000L;
|
fBlocks[i]->last_accessed = system_time() / 1000000L;
|
||||||
|
Loading…
Reference in New Issue
Block a user