two small nommu cleanups

From: Christoph Hellwig
Date: Tue Apr 23 2019 - 12:31:29 EST


Hi all,

these two patches avoid writing some boilerplate code for the upcoming
RISC-V nommu support, and might also help to clean up existing nommu
support in other architectures down the road.