public
/
FUZIX.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
613c3db
)
swap: set inswap flag on swapping out
author
Alan Cox
<alan@linux.intel.com>
Sun, 2 Dec 2018 23:45:08 +0000
(23:45 +0000)
committer
Alan Cox
<alan@linux.intel.com>
Sun, 2 Dec 2018 23:45:08 +0000
(23:45 +0000)
Kernel/swap.c
patch
|
blob
|
history
diff --git
a/Kernel/swap.c
b/Kernel/swap.c
index
f12fe96
..
3b3bca0
100644
(file)
--- a/
Kernel/swap.c
+++ b/
Kernel/swap.c
@@
-144,9
+144,12
@@
static ptptr swapvictim(ptptr p, int notself)
ptptr swapneeded(ptptr p, int notself)
{
ptptr n = swapvictim(p, notself);
- if (n)
+ if (n) {
+ inswap = 1;
if (swapout(n))
n = NULL;
+ inswap = 0;
+ }
return n;
}