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
cc18ae86
Commit
cc18ae86
authored
Dec 03, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
c8e9e128
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
bigfile/virtmem.c
bigfile/virtmem.c
+2
-4
No files found.
bigfile/virtmem.c
View file @
cc18ae86
...
...
@@ -941,9 +941,6 @@ static int __ram_reclaim(RAM *ram)
/* delete page & its entry in fileh->pagemap */
pagemap_del
(
&
page
->
fileh
->
pagemap
,
page
->
f_pgoffset
);
page_del
(
page
);
// list_del(&page->lru);
// bzero(page, sizeof(*page)); /* just in case */
// free(page);
}
}
...
...
@@ -1035,7 +1032,7 @@ static void page_drop_memory(Page *page)
*/
static
void
page_del
(
Page
*
page
)
{
BUG_ON
(
page
->
refcnt
!=
0
);
BUG_ON
(
page
->
state
==
PAGE_DIRTY
);
// XXX + PAGE_LOADING ?
BUG_ON
(
page
->
state
==
PAGE_DIRTY
);
// XXX + PAGE_LOADING ?
XXX != PAGE_EMPTY ?
list_del
(
&
page
->
lru
);
bzero
(
page
,
sizeof
(
*
page
));
/* just in case */
...
...
@@ -1076,6 +1073,7 @@ static void vma_mmap_page(VMA *vma, Page *page) {
pgoff_t
pgoff_invma
;
int
prot
=
(
page
->
state
==
PAGE_DIRTY
?
PROT_READ
|
PROT_WRITE
:
PROT_READ
);
// NOTE: PAGE_LOADED_FOR_WRITE not passed here
ASSERT
(
page
->
state
==
PAGE_LOADED
||
page
->
state
==
PAGE_DIRTY
);
ASSERT
(
vma
->
f_pgoffset
<=
page
->
f_pgoffset
&&
page
->
f_pgoffset
<
vma_addr_fpgoffset
(
vma
,
vma
->
addr_stop
));
...
...
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