Re: uvm_flush: return int, sync with netbsd

2022-01-17 Thread Theo Buehler
On Mon, Jan 17, 2022 at 09:52:50AM +, Klemens Nanni wrote: > One small mechanical diff to get rid of the boolean_t signature and > reduce difference to NetBSD. > > uvm_flush() aka. uao_flush()/udv_flush()/pgo_flush()/uvn_flush() returns > TRUE/FALSE only to make uvm_map_clean() conditionally r

uvm_flush: return int, sync with netbsd

2022-01-17 Thread Klemens Nanni
One small mechanical diff to get rid of the boolean_t signature and reduce difference to NetBSD. uvm_flush() aka. uao_flush()/udv_flush()/pgo_flush()/uvn_flush() returns TRUE/FALSE only to make uvm_map_clean() conditionally return EFAULT. This makes the *_flush() return 0/EFAULT themselves and th