mm: Call dev.mmap before checking the file