summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authorstefan <stefan@openbsd.org>2016-04-12 16:47:33 +0000
committerstefan <stefan@openbsd.org>2016-04-12 16:47:33 +0000
commitc652bc87b34e917a889b57085fc3b358d9f82e92 (patch)
tree827c34d89a606798bf798978b67d6486b6d6b2a5 /lib/libc
parentNo need to rescan chunks in each discipline to find appropriate (diff)
downloadwireguard-openbsd-c652bc87b34e917a889b57085fc3b358d9f82e92.tar.xz
wireguard-openbsd-c652bc87b34e917a889b57085fc3b358d9f82e92.zip
Simplify amap traversal in amap_swap_off.
There's no need to insert marker elements to find the next item in the amap list. The next amap can be determined by looking at the currently examined amap. Care must be taken to get the next element before the current amap is possibly deleted, and after all the current amap's pages were read in from swap (because the page-in may sleep and remove items from the amap list).
Diffstat (limited to 'lib/libc')
0 files changed, 0 insertions, 0 deletions