51634dfd25
array's contents and returning all the requested pages. Otherwise there are problems (accessing invalid memory) when the a_m vector is passed uninitialized as the NFS server code does. Fixes PR kern/34959. Note that this is not a "real" fix. While this makes tmpfs's getpages operation consistent with the behavior of other file systems, it does not resolve the different semantics between uvn_get and uao_get as described in PR kern/32166. I'm adding a comment in the code mentioning exactly this so that it can be reviewed when this last problem is addressed.