Introduce a function to trylock a page instead of duplicating the logic.
authormpi <mpi@openbsd.org>
Wed, 31 Aug 2022 09:26:04 +0000 (09:26 +0000)
committermpi <mpi@openbsd.org>
Wed, 31 Aug 2022 09:26:04 +0000 (09:26 +0000)
commitc4141b1c020ca218af9b5d9cdb6363d6a601b654
tree00e2f2e1ee26fd7d916df77fd62ff13dea2ffdf1
parentab6ab780d988fb93ffaa3f9bb751f2bc92cdd57a
Introduce a function to trylock a page instead of duplicating the logic.

Stolen from NetBSD.

ok jsg@
sys/uvm/uvm_pdaemon.c