summaryrefslogtreecommitdiff
path: root/lib/cmap/bbmap
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2014-06-08 17:39:40 +0200
committercinap_lenrek <cinap_lenrek@felloff.net>2014-06-08 17:39:40 +0200
commit1b8fb4fec399dd9520db68b0c8e97d21881d639b (patch)
tree8e1fd0e33a6e6628245e275cdb87e94cc8b3984e /lib/cmap/bbmap
parentfcfa74a1cfe16dace0c6a34d0c83e290843a35bd (diff)
downloadplan9front-1b8fb4fec399dd9520db68b0c8e97d21881d639b.tar.xz
swap: make sure swap address sticks arround until page is written to swap
we have to make sure the *swap address* doesnt go away, after putting the swap address in the segment pte. after we unlock the segment, the process could be killed or fault which would cause the swap address to be freed *before* we write the page to disk when it pulls the page from the cache and putswap() swap pte. keeping a reference to the page is no good. we have to hold on the swap address. this also has the advantage that we can now test if the swap address is still referenced and can avoid writing to disk.
Diffstat (limited to 'lib/cmap/bbmap')
0 files changed, 0 insertions, 0 deletions