diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2014-03-02 20:55:26 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2014-03-02 20:55:26 +0100 |
commit | 9405f4c95f229a173c6f430c12d96ac2c19e8626 (patch) | |
tree | b51ff1e4ca888774d7ad51661e201339ee8fef79 /sys/src/cmd/cc/funct.c | |
parent | 142858b176c3b3a256389e1c700b78ba89e85e69 (diff) |
kernel: getting rid of duppage() (thanks charles)
simplifying paging code by getting rid of duppage(). instead,
fixfault() now always makes a copy of the shared/cached page
and leaves the cache alone. newpage() uncaches pages as
neccesary.
thanks charles forsyth for the suggestion.
from http://9fans.net/archive/2014/03/26:
> It isn't needed at all. When a cached page is written, it's trying hard to
> replace the page in the cache by a new copy,
> to return the previously cached page. Instead, I copy the cached page and
> return the copy, which is what it already
> does in another instance. ...
Diffstat (limited to 'sys/src/cmd/cc/funct.c')
0 files changed, 0 insertions, 0 deletions