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
d976419c
Commit
d976419c
authored
Apr 14, 2020
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
26c00f39
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
bigfile/virtmem.c
bigfile/virtmem.c
+4
-3
No files found.
bigfile/virtmem.c
View file @
d976419c
...
...
@@ -881,8 +881,8 @@ VMFaultResult vma_on_pagefault(VMA *vma, uintptr_t addr, int write)
// XXX overlay: assert !vma->page_ismappedv[blk] XXX not ok? (retrying after virt unlock/lock)
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 */
/* wcfs:
also mmap the page to all wcfs-backed vmas. If we don't, the
*
memory on
those vmas will read with stale data */
if
(
fileh
->
mmap_overlay
)
{
list_for_each
(
hmmap
,
&
fileh
->
mmaps
)
{
VMA
*
vma2
=
list_entry
(
hmmap
,
typeof
(
*
vma2
),
same_fileh
);
...
...
@@ -930,6 +930,7 @@ static int __ram_reclaim(RAM *ram)
/* can release ram only from loaded non-dirty pages
* NOTE PAGE_LOADING pages are not dropped - they just continue to load */
// XXX PAGE_LOADED_FOR_WRITE vvv ok?
if
(
page
->
state
==
PAGE_LOADED
||
page
->
state
==
PAGE_LOADED_FOR_WRITE
)
{
page_drop_memory
(
page
);
batch
--
;
...
...
@@ -1051,7 +1052,7 @@ static void page_del(Page *page) {
static
void
*
vma_page_addr
(
VMA
*
vma
,
Page
*
page
)
{
uintptr_t
addr
;
ASSERT
(
vma
->
fileh
==
page
->
fileh
);
// XXX needed here?
ASSERT
(
vma
->
fileh
==
page
->
fileh
);
addr
=
vma
->
addr_start
+
(
page
->
f_pgoffset
-
vma
->
f_pgoffset
)
*
page_size
(
page
);
ASSERT
(
vma
->
addr_start
<=
addr
&&
...
...
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