Take "mappedwrite" from MacZFS which is in fact an early version of
update_pages().