Repository navigation
New map - #286
Open
akiradeveloper wants to merge 3 commits into
Open
New map#286akiradeveloper wants to merge 3 commits into
akiradeveloper wants to merge 3 commits into
Conversation
Represent each physical cache slot with a 16-byte sector/next/prev entry and 32-bit bucket heads. Keep deletion of a known slot constant-time and preserve its LBA after removal. Arrays and synchronization belong to the metadata layer; map operations allocate no memory. Add the implementation alongside the existing hash table for the next commit to integrate. No standalone library or unit-test infrastructure. Validation: module build against Linux 6.8.0-147 headers.
Use stable cache indices in lookup, read/write, writeback, and recovery. Store LBAs and links in 16-byte entries, masks in a byte array, and dirty flags in 32-byte segment headers. Keep map helpers local to metadata.c. Allocate ceil(N/4) bucket heads once at creation, retaining constant-time known-slot deletion and existing synchronization and segment references. The main arrays use 17N + 4*ceil(N/4) + 32S bytes. Preserve the on-disk format and guard cache-index capacity and allocation arithmetic. Use CURDIR in the module Makefile so make -C src addresses the module. Validation: module build against Linux 6.8.0-147 headers.
Store segment headers in a typed array and use direct indexing and pointer subtraction. Allocate and free the array with vmalloc/vfree, retaining the allocation-size overflow check. Validation: module build against Linux 6.8.0-147 headers.
akiradeveloper
force-pushed
the
new-map
branch
from
October 26, 2026 03:48
a3a5b42 to
3deec00
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.