Update uvmexp.swpgonly only once in uvm_swap_get().
authormpi <mpi@openbsd.org>
Thu, 28 Apr 2022 09:58:11 +0000 (09:58 +0000)
committermpi <mpi@openbsd.org>
Thu, 28 Apr 2022 09:58:11 +0000 (09:58 +0000)
commit979857e1bc594ab645908ae016b4f6467e5d8c8f
tree326851e9330d7cd15b39126bdd8bd762092ee55e
parent6710b2a4058e728bd0b66e1142b11f719e082132
Update uvmexp.swpgonly only once in uvm_swap_get().

Prevent a small window where a check could be incorrect in case an error
occurs in uvm_swap_io().

ok kettenis@, kn@
sys/uvm/uvm_swap.c