Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wendelin.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Kirill Smelkov
wendelin.core
Commits
006a9815
Commit
006a9815
authored
Feb 21, 2020
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
3cd6d1ba
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
6 deletions
+15
-6
wcfs/client/wcfs.cpp
wcfs/client/wcfs.cpp
+15
-6
No files found.
wcfs/client/wcfs.cpp
View file @
006a9815
...
...
@@ -71,17 +71,26 @@
// in FileH._headfsize for use during one transaction.
//
//
//
//
// Integration with wendelin.core virtmem layer
//
// XXX no need to split mappings on pin
// Wcfs integrates with virtmem layer to support virtmem to handle dirtying
// pages of read-only base-layer that wcfs client provides via isolated
// Mapping. When a page is write-accessed, virtmem mmaps in a page of RAM in
// place of accessed virtual memory, copies base-layer content into there, and
// marks that page as read-write accessed.
//
// Upon receiving pin message, the pinner consults virtmem, whether
// corresponding page was already dirtied, and if it was, the pinner does not
// remmap virtual memory to wcfs/@revX/f and just leaves dirty page in its
// place, remembering pin information in fileh._pinned.
//
// Once dirty pages are no longer needed (either after discard/abort or
// writeout/commit), virtmem asks wcfs client to remmap corresponding regions
// of Mapping in its place again.
//
// - need to maintain pinner map registry XXX no need
// The scheme outlined above avoids splitting Mapping upon dirtying an inner
// page.
//
// [blk< +len) -> vma ↓blk
// #blk -> []vma covering it
//
// - we can reuse virtmem code:
//
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment