mm: Call dev.mmap before checking the file
authorBarret Rhoden <brho@cs.berkeley.edu>
Wed, 28 Feb 2018 22:19:37 +0000 (17:19 -0500)
committerBarret Rhoden <brho@cs.berkeley.edu>
Fri, 6 Apr 2018 19:23:01 +0000 (15:23 -0400)
commit56f463df799796b598c6010a813d8e99ce56a2c6
tree9850f6503fcec2ed6bb98573b63890acbaad379f
parent472cc36c8adc056d18077cfa902b7b7d5803577e
mm: Call dev.mmap before checking the file

Not all files in 9ns will be mmappable.  Check with the device first, which
will determine if you can mmap it or not and also make available the
various structures (e.g. fs_file) for the foc ops.

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
kern/src/mm.c