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
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Joshua
wendelin.core
Commits
db641047
Commit
db641047
authored
Jul 10, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
d3a45067
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
bigfile/virtmem.c
bigfile/virtmem.c
+8
-0
No files found.
bigfile/virtmem.c
View file @
db641047
...
...
@@ -633,6 +633,7 @@ VMFaultResult vma_on_pagefault(VMA *vma, uintptr_t addr, int write)
pgoff_t
pagen
;
Page
*
page
;
BigFileH
*
fileh
;
struct
list_head
*
hmmap
;
/* continuing on_pagefault() - see (1) there ... */
...
...
@@ -824,6 +825,13 @@ VMFaultResult vma_on_pagefault(VMA *vma, uintptr_t addr, int write)
// XXX mmap page to all vma with .mmap_overlay=1 of this fileh.
vma_mmap_page
(
vma
,
page
);
/* wcfs: mmap the page to all wcfs-backed vmas. If we don't the memory on
* those vmas will read with stale data */
list_for_each
(
hmmap
,
&
fileh
->
mmaps
)
{
VMA
*
vma2
=
list_entry
(
hmmap
,
typeof
(
*
vma2
),
same_fileh
);
if
(
vma2
!=
vma
&&
vma2
->
mmap_overlay
)
vma_mmap_page
(
vma2
,
page
);
}
/* mark page as used recently */
// XXX = list_move_tail()
...
...
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