summaryrefslogtreecommitdiff
path: root/sys/src/ape/lib/bsd/setlinebuf.c
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2015-03-16 05:23:38 +0100
committercinap_lenrek <cinap_lenrek@felloff.net>2015-03-16 05:23:38 +0100
commitd0b1db98bcade0335b7762cb76e236a483143f91 (patch)
tree7d5c2abdc68e64aac78630fe11d7cc58b839a403 /sys/src/ape/lib/bsd/setlinebuf.c
parentc1717aebf7094f8a06a9f13f322fcc8b68c23cff (diff)
kernel: avoid repeated calls to reclaim(), dont miss last page in Pte
when we are skipping a process because we could not acquire its segment lock, dont call reclaim() again (which is pointless as we didnt pageout any pages), instead try the next process. the Pte.last pointer is inclusive, so don't miss the last page in pageout().
Diffstat (limited to 'sys/src/ape/lib/bsd/setlinebuf.c')
0 files changed, 0 insertions, 0 deletions