diff options
author | Jesse Barnes <jbarnes@virtuousgeek.org> | 2014-12-12 19:55:27 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-12-13 15:42:47 -0500 |
commit | e1d6d01ab491bee6cfa02f2c10db50f31de85e79 (patch) | |
tree | 60cba1a90f20e629af163fb7d4f0abb8b4ee78b9 /mm/mmap.c | |
parent | 7d9ca0004fc356d8606ded88a7d5d06550aac946 (diff) |
mm: export find_extend_vma() and handle_mm_fault() for driver use
This lets drivers like the AMD IOMMUv2 driver handle faults a bit more
simply, rather than doing tricks with page refs and get_user_pages().
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Cc: Oded Gabbay <oded.gabbay@amd.com>
Cc: Joerg Roedel <jroedel@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/mmap.c')
-rw-r--r-- | mm/mmap.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -2362,6 +2362,8 @@ find_extend_vma(struct mm_struct *mm, unsigned long addr) | |||
2362 | } | 2362 | } |
2363 | #endif | 2363 | #endif |
2364 | 2364 | ||
2365 | EXPORT_SYMBOL_GPL(find_extend_vma); | ||
2366 | |||
2365 | /* | 2367 | /* |
2366 | * Ok - we have the memory areas we should free on the vma list, | 2368 | * Ok - we have the memory areas we should free on the vma list, |
2367 | * so release them, and do the vma updates. | 2369 | * so release them, and do the vma updates. |