Skip to content

[UDFS] Move large mount-time bitmap/VAT buffers to PagedPool#285

Closed
Copilot wants to merge 2 commits into
writefrom
copilot/fix-mounting-of-udf-drive
Closed

[UDFS] Move large mount-time bitmap/VAT buffers to PagedPool#285
Copilot wants to merge 2 commits into
writefrom
copilot/fix-mounting-of-udf-drive

Conversation

Copy link
Copy Markdown

Copilot AI commented Apr 23, 2026

UDFS mount on low-memory systems still consumed large NonPagedPool buffers in bitmap/VAT paths, preventing the intended benefit of pagefile-backed memory and blocking large-volume mount scenarios. This change shifts those large mount-time allocations to pageable pool so they can be backed by the system page file.

  • Mount-path bitmap buffers made pageable

    • UDFPrepareXSpaceBitmap: _XSBM allocation switched to PagedPool
    • UDFAddXSpaceBitmap / UDFVerifyXSpaceBitmap: temporary bitmap read buffers switched to PagedPool
    • UDFBuildFreeSpaceBitmap: FSBM_Bitmap and FSBM_Bitmap_owners switched to PagedPool
    • UDFGetDiskInfoAndVerify: FSBM_OldBitmap switched to PagedPool
  • VAT table buffer made pageable

    • UDFLoadVAT: Vcb->Vat allocation switched to PagedPool
  • Scope

    • Only pool type selection was changed for the targeted large allocations; allocation sizes, control flow, and bitmap/VAT logic are unchanged.
// before
Vcb->Vat = (uint32*)DbgAllocatePool(NonPagedPool, (Vcb->LastPossibleLBA+1)*sizeof(uint32));

// after
Vcb->Vat = (uint32*)DbgAllocatePool(PagedPool, (Vcb->LastPossibleLBA+1)*sizeof(uint32));

Agent-Logs-Url: https://github.com/Zero3K20/reactos/sessions/ffe6841a-3388-46f2-ae2f-469a57193caa

Co-authored-by: Zero3K20 <258969903+Zero3K20@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix mounting of drive to utilize page file on NTFS drive [UDFS] Move large mount-time bitmap/VAT buffers to PagedPool Apr 23, 2026
Copilot AI requested a review from Zero3K20 April 23, 2026 00:55
@Zero3K20 Zero3K20 closed this Apr 23, 2026
@Zero3K20 Zero3K20 deleted the copilot/fix-mounting-of-udf-drive branch April 23, 2026 00:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[UDFS] Fix mounting of drive to where the Paged Pool that is being used is able to be backed by the page file stored on a NTFS drive

2 participants