The patch titled Subject: cramfs: convert to use vmf_insert_mixed has been added to the -mm tree. Its filename is cramfs-convert-to-use-vmf_insert_mixed-v2.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/cramfs-convert-to-use-vmf_insert_mixed-v2.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/cramfs-convert-to-use-vmf_insert_mixed-v2.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Nicolas Pitre <nicolas.pitre@xxxxxxxxxx> Subject: cramfs: convert to use vmf_insert_mixed Souptick's patch, tweaked to imprve error handling. Link: http://lkml.kernel.org/r/nycvar.YSQ.7.76.1808290945450.10215@xxxxxxxxxxx Cc: Souptick Joarder <jrdr.linux@xxxxxxxxx>a Cc: Matthew Wilcox <willy@xxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- fs/cramfs/inode.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) --- a/fs/cramfs/inode.c~cramfs-convert-to-use-vmf_insert_mixed-v2 +++ a/fs/cramfs/inode.c @@ -418,9 +418,12 @@ static int cramfs_physmem_mmap(struct fi int i; vma->vm_flags |= VM_MIXEDMAP; for (i = 0; i < pages && !ret; i++) { + vm_fault_t vmf; unsigned long off = i * PAGE_SIZE; pfn_t pfn = phys_to_pfn_t(address + off, PFN_DEV); - ret = vm_insert_mixed(vma, vma->vm_start + off, pfn); + vmf = vmf_insert_mixed(vma, vma->vm_start + off, pfn); + if (vmf & VM_FAULT_ERROR) + ret = vm_fault_to_errno(vmf, 0); } } _ Patches currently in -mm which might be from nicolas.pitre@xxxxxxxxxx are cramfs-convert-to-use-vmf_insert_mixed-v2.patch