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
e6aad404
Commit
e6aad404
authored
Apr 15, 2020
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
c8e1cb33
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
bigfile/virtmem.c
bigfile/virtmem.c
+10
-3
No files found.
bigfile/virtmem.c
View file @
e6aad404
...
...
@@ -111,7 +111,7 @@ void virt_lock_hookgil(const VirtGilHooks *gilhooks)
//
// XXX temp hack to workaround that bug for now.
if
(
virtmem_gilhooks
==
gilhooks
)
virtmem_gilhooks
=
NULL
;
virtmem_gilhooks
=
NULL
;
BUG_ON
(
virtmem_gilhooks
);
/* prevent registering multiple times */
virtmem_gilhooks
=
gilhooks
;
...
...
@@ -955,8 +955,15 @@ 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
* NOTE PAGE_LOADED_FOR_WRITE are not dropped - they are going to be dirtied in a moment */
if
(
page
->
state
==
PAGE_LOADED
)
{
*
* NOTE PAGE_LOADED_FOR_WRITE are dropped too - even if normally they
* are going to be dirtied in a moment, due to VM_RETRY logic and so
* VMA might be changing simultaneously to pagefault handling, a
* page might remain in pagemap in PAGE_LOADED_FOR_WRITE state
* indefinitely unused and without actually being dirtied.
*
* TODO drop PAGE_LOADED_FOR_WRITE only after all PAGE_LOADED have been reclaimed. */
if
(
page
->
state
==
PAGE_LOADED
||
page
->
state
==
PAGE_LOADED_FOR_WRITE
)
{
page_drop_memory
(
page
);
batch
--
;
}
...
...
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