VirtualBox

Changeset 39042 in vbox


Ignore:
Timestamp:
Oct 19, 2011 2:55:57 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
74462
Message:

build fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR3/PDMBlkCache.cpp

    r39038 r39042  
    18241824                                                size_t *pcbData)
    18251825{
    1826     AssertReturn(cb <= UINT32_MAX, NULL);
    1827 
    18281826    uint64_t offStart = 0;
    18291827    uint32_t cbEntry  = 0;
    18301828    *pcbData = pdmBlkCacheEntryBoundariesCalc(pBlkCache, off, (uint32_t)cb, uAlignment,
    18311829                                              &offStart, &cbEntry);
     1830    AssertReturn(cb <= UINT32_MAX, NULL);
    18321831
    18331832    PPDMBLKCACHEGLOBAL pCache = pBlkCache->pCache;
     
    21822181
    21832182        pEntry = pdmBlkCacheGetCacheEntryByOffset(pBlkCache, off);
    2184 
    21852183        if (pEntry)
    21862184        {
     
    22152213                    /* If it is already dirty but not in progress just update the data. */
    22162214                    if (!(pEntry->fFlags & PDMBLKCACHE_ENTRY_IO_IN_PROGRESS))
    2217                     {
    2218                         RTSgBufCopyToBuf(&SgBuf, pEntry->pbData + offDiff,
    2219                                          cbToWrite);
    2220                     }
     2215                        RTSgBufCopyToBuf(&SgBuf, pEntry->pbData + offDiff, cbToWrite);
    22212216                    else
    22222217                    {
     
    22362231                     * We have to defer processing in that case.
    22372232                     */
    2238                     if(pdmBlkCacheEntryFlagIsSetClearAcquireLock(pBlkCache, pEntry,
    2239                                                                  PDMBLKCACHE_ENTRY_IO_IN_PROGRESS,
    2240                                                                  0))
     2233                    if (pdmBlkCacheEntryFlagIsSetClearAcquireLock(pBlkCache, pEntry,
     2234                                                                  PDMBLKCACHE_ENTRY_IO_IN_PROGRESS,
     2235                                                                  0))
    22412236                    {
    22422237                        pdmBlkCacheEntryWaitersAdd(pEntry, pReq,
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette