19 if (!m_pFilesystem->tryAcquireOperation(operation)) {
23 const size_t oldSize = getSize();
24 filesystem->extend(
this, newSize);
25 const size_t size = getSize();
27 const size_t within = oldSize % pageSize;
28 if (size > oldSize && within) {
29 const size_t pageOffset = oldSize - within;
30 const uintptr_t page = cacheState().fill.
lookup(pageOffset);
33 const size_t amount = size - oldSize < pageSize - within ? size - oldSize : pageSize - within;
34 ByteSet(
reinterpret_cast<void*
>(page + within), 0, amount);
36 cacheState().fill.
release(pageOffset);