Changeset 26246 in vbox for trunk/src/VBox/VMM
- Timestamp:
- Feb 4, 2010 7:30:47 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/PDMAsyncCompletionFileCache.cpp
r26242 r26246 402 402 pCache->cbCached -= pCurr->cbData; 403 403 404 pdmacFileCacheEntryRemoveFromList(pCurr); 405 404 406 if (pGhostListDst) 405 407 { 408 RTSemRWReleaseWrite(pEndpointCache->SemRWEntries); 406 409 #ifdef VBOX_WITH_2Q_CACHE 407 410 /* We have to remove the last entries from the paged out list. */ … … 433 436 STAM_PROFILE_ADV_STOP(&pCache->StatTreeRemove, Cache); 434 437 435 pdmacFileCacheEntryRemoveFromList(pCurr);438 RTSemRWReleaseWrite(pEndpointCache->SemRWEntries); 436 439 RTMemFree(pCurr); 437 440 } 438 441 } 439 RTSemRWReleaseWrite(pEndpointCache->SemRWEntries); 442 440 443 } 441 444 else … … 1413 1416 cbToRead = RT_MIN(pEntry->cbData - OffDiff, cbRead); 1414 1417 1415 AssertMsg(off + (RTFOFF)cbToRead <= pEntry->Core.Key + pEntry->Core.KeyLast ,1416 ("Buffer of cache entry exceeded off=%RTfoff cbToRead=% z\n",1418 AssertMsg(off + (RTFOFF)cbToRead <= pEntry->Core.Key + pEntry->Core.KeyLast + 1, 1419 ("Buffer of cache entry exceeded off=%RTfoff cbToRead=%d\n", 1417 1420 off, cbToRead)); 1418 1421 … … 1626 1629 &IoMemCtx, off, cbToRead, 1627 1630 PDMACTASKFILETRANSFER_READ); 1631 off += cbToRead; 1628 1632 } 1629 1633 } … … 1956 1960 &IoMemCtx, off, cbToWrite, 1957 1961 PDMACTASKFILETRANSFER_WRITE); 1962 off += cbToWrite; 1958 1963 } 1959 1964 }
Note:
See TracChangeset
for help on using the changeset viewer.