mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
bug 617123: workaround by removing fallocate calls. a=beltzner
This commit is contained in:
parent
08e26b0df0
commit
cea83e2a0f
3
netwerk/cache/nsDiskCacheBlockFile.cpp
vendored
3
netwerk/cache/nsDiskCacheBlockFile.cpp
vendored
@ -387,7 +387,8 @@ nsDiskCacheBlockFile::Write(PRInt32 offset, const void *buf, PRInt32 amount)
|
||||
mFileSize = PR_MIN(maxPreallocate, PR_MAX(mFileSize, minPreallocate));
|
||||
}
|
||||
mFileSize = PR_MIN(mFileSize, maxFileSize);
|
||||
mozilla::fallocate(mFD, mFileSize);
|
||||
// Appears to cause bug 617123? Disabled for now.
|
||||
//mozilla::fallocate(mFD, mFileSize);
|
||||
}
|
||||
if (PR_Seek(mFD, offset, PR_SEEK_SET) != offset)
|
||||
return false;
|
||||
|
3
netwerk/cache/nsDiskCacheStreams.cpp
vendored
3
netwerk/cache/nsDiskCacheStreams.cpp
vendored
@ -733,8 +733,11 @@ nsDiskCacheStreamIO::FlushBufferToFile()
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
PRInt64 dataSize = mBinding->mCacheEntry->PredictedDataSize();
|
||||
// Appears to cause bug 617123? Disabled for now.
|
||||
#if 0
|
||||
if (dataSize != -1)
|
||||
mozilla::fallocate(mFD, PR_MIN(dataSize, kPreallocateLimit));
|
||||
#endif
|
||||
}
|
||||
|
||||
// write buffer
|
||||
|
Loading…
Reference in New Issue
Block a user