Commit 42172d751b4596b8ca4346a1c251b5f1c661ab0c

Authored by Nick Piggin
Committed by Linus Torvalds
1 parent c2448278e3

mm: allow pfnmap ->fault()s

Take out an assertion to allow ->fault handlers to service PFNMAP regions.
This is required to reimplement .nopfn handlers with .fault handlers and
subsequently remove nopfn.

Signed-off-by: Nick Piggin <npiggin@suse.de>
Acked-by: Jes Sorensen <jes@sgi.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

Showing 1 changed file with 0 additions and 2 deletions Side-by-side Diff

... ... @@ -2295,8 +2295,6 @@
2295 2295 vmf.flags = flags;
2296 2296 vmf.page = NULL;
2297 2297  
2298   - BUG_ON(vma->vm_flags & VM_PFNMAP);
2299   -
2300 2298 ret = vma->vm_ops->fault(vma, &vmf);
2301 2299 if (unlikely(ret & (VM_FAULT_ERROR | VM_FAULT_NOPAGE)))
2302 2300 return ret;