projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7d9ca00
)
mm: export find_extend_vma() and handle_mm_fault() for driver use
author
Jesse Barnes
<
[email protected]
>
Sat, 13 Dec 2014 00:55:27 +0000
(16:55 -0800)
committer
Linus Torvalds
<
[email protected]
>
Sat, 13 Dec 2014 20:42:47 +0000
(12:42 -0800)
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 <
[email protected]
>
Cc: Oded Gabbay <
[email protected]
>
Cc: Joerg Roedel <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
mm/memory.c
patch
|
blob
|
history
mm/mmap.c
patch
|
blob
|
history
diff --git
a/mm/memory.c
b/mm/memory.c
index 5afdb5b8d4e2bbdd0b0daf6eee764274aaa693c9..fbf74112de5bfa39496ae491bd39ea9ef38ae00d 100644
(file)
--- a/
mm/memory.c
+++ b/
mm/memory.c
@@
-3365,6
+3365,7
@@
int handle_mm_fault(struct mm_struct *mm, struct vm_area_struct *vma,
return ret;
}
+EXPORT_SYMBOL_GPL(handle_mm_fault);
#ifndef __PAGETABLE_PUD_FOLDED
/*
diff --git
a/mm/mmap.c
b/mm/mmap.c
index 0d84b2f86f3b8fb65f8bd9ff52dea247fe2f2781..7b36aa7cc89a43c7c5909b7799b77d13106a2929 100644
(file)
--- a/
mm/mmap.c
+++ b/
mm/mmap.c
@@
-2362,6
+2362,8
@@
find_extend_vma(struct mm_struct *mm, unsigned long addr)
}
#endif
+EXPORT_SYMBOL_GPL(find_extend_vma);
+
/*
* Ok - we have the memory areas we should free on the vma list,
* so release them, and do the vma updates.