git.samba.org
/
sfrench
/
cifs-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mm/mmu_notifier: contextual information for event enums
[sfrench/cifs-2.6.git]
/
mm
/
util.c
diff --git
a/mm/util.c
b/mm/util.c
index 43a2984bccaab6525afb6e7c61ce8d903f45f24e..05a464929b3eb4b02380770376d66b58338a2672 100644
(file)
--- a/
mm/util.c
+++ b/
mm/util.c
@@
-318,7
+318,7
@@
EXPORT_SYMBOL_GPL(__get_user_pages_fast);
* get_user_pages_fast() - pin user pages in memory
* @start: starting user address
* @nr_pages: number of pages from start to pin
* get_user_pages_fast() - pin user pages in memory
* @start: starting user address
* @nr_pages: number of pages from start to pin
- * @
write: whether pages will be written to
+ * @
gup_flags: flags modifying pin behaviour
* @pages: array that receives pointers to the pages pinned.
* Should be at least nr_pages long.
*
* @pages: array that receives pointers to the pages pinned.
* Should be at least nr_pages long.
*
@@
-339,10
+339,10
@@
EXPORT_SYMBOL_GPL(__get_user_pages_fast);
* were pinned, returns -errno.
*/
int __weak get_user_pages_fast(unsigned long start,
* were pinned, returns -errno.
*/
int __weak get_user_pages_fast(unsigned long start,
- int nr_pages, int write, struct page **pages)
+ int nr_pages, unsigned int gup_flags,
+ struct page **pages)
{
{
- return get_user_pages_unlocked(start, nr_pages, pages,
- write ? FOLL_WRITE : 0);
+ return get_user_pages_unlocked(start, nr_pages, pages, gup_flags);
}
EXPORT_SYMBOL_GPL(get_user_pages_fast);
}
EXPORT_SYMBOL_GPL(get_user_pages_fast);