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
ab962714
Commit
ab962714
authored
Jul 12, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
e7b77669
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
4 deletions
+10
-4
bigfile/tests/test_virtmem.c
bigfile/tests/test_virtmem.c
+1
-1
bigfile/virtmem.c
bigfile/virtmem.c
+9
-3
No files found.
bigfile/tests/test_virtmem.c
View file @
ab962714
...
...
@@ -1641,7 +1641,7 @@ int main()
{
tap_fail_callback
=
abort
;
// XXX to catch failure immediately
if
(
0
)
{
if
(
1
)
{
test_vmamap
();
test_file_access_synthetic
();
test_file_access_pagefault
();
...
...
bigfile/virtmem.c
View file @
ab962714
...
...
@@ -505,9 +505,15 @@ void fileh_dirty_discard(BigFileH *fileh)
BUG_ON
(
page
->
state
!=
PAGE_DIRTY
);
fprintf
(
stderr
,
"discard p%ld
\n
"
,
page
->
f_pgoffset
);
pagemap_del
(
&
fileh
->
pagemap
,
page
->
f_pgoffset
);
page_drop_memory
(
page
);
page_del
(
page
);
// FIXME do pagemap_del + drop_ram + page_del unconditionally
// (just need think again and to update !wcfs discard test)
if
(
fileh
->
mmap_overlay
)
{
pagemap_del
(
&
fileh
->
pagemap
,
page
->
f_pgoffset
);
page_drop_memory
(
page
);
page_del
(
page
);
}
else
{
page_drop_memory
(
page
);
}
}
BUG_ON
(
!
list_empty
(
&
fileh
->
dirty_pages
));
...
...
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