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
6f4229db
Commit
6f4229db
authored
Apr 15, 2020
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
734bb68c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
bigfile/virtmem.c
bigfile/virtmem.c
+3
-4
No files found.
bigfile/virtmem.c
View file @
6f4229db
...
...
@@ -927,15 +927,14 @@ static int __ram_reclaim(RAM *ram)
scanned
++
;
/* 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
)
{
* NOTE PAGE_LOADING pages are not dropped - they just continue to load
* NOTE PAGE_LOADED_FOR_WRITE are not dropped - they are going to be dirtied in a moment */
if
(
page
->
state
==
PAGE_LOADED
)
{
page_drop_memory
(
page
);
batch
--
;
}
/* PAGE_EMPTY pages without mappers go away */
// XXX merge vvv with ^^^ : page_drop_memory + pagemap_del + page_del
if
(
page
->
state
==
PAGE_EMPTY
)
{
BUG_ON
(
page
->
refcnt
!=
0
);
// XXX what for then we have refcnt? -> vs discard
...
...
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