diff --git a/netwerk/cache/nsDiskCacheBlockFile.cpp b/netwerk/cache/nsDiskCacheBlockFile.cpp index 5420b119340..7d2a075339e 100644 --- a/netwerk/cache/nsDiskCacheBlockFile.cpp +++ b/netwerk/cache/nsDiskCacheBlockFile.cpp @@ -387,8 +387,9 @@ nsDiskCacheBlockFile::Write(int32_t offset, const void *buf, int32_t amount) mFileSize = clamped(mFileSize, minPreallocate, maxPreallocate); } mFileSize = std::min(mFileSize, maxFileSize); - // Appears to cause bug 617123? Disabled for now. - //mozilla::fallocate(mFD, mFileSize); +#if !defined(XP_MACOSX) + mozilla::fallocate(mFD, mFileSize); +#endif } if (PR_Seek(mFD, offset, PR_SEEK_SET) != offset) return false;