diff options
Diffstat (limited to 'mm')
-rw-r--r-- | mm/util.c | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -245,6 +245,19 @@ void arch_pick_mmap_layout(struct mm_struct *mm) | |||
245 | } | 245 | } |
246 | #endif | 246 | #endif |
247 | 247 | ||
248 | /* | ||
249 | * Like get_user_pages_fast() except its IRQ-safe in that it won't fall | ||
250 | * back to the regular GUP. | ||
251 | * If the architecture not support this fucntion, simply return with no | ||
252 | * page pinned | ||
253 | */ | ||
254 | int __attribute__((weak)) __get_user_pages_fast(unsigned long start, | ||
255 | int nr_pages, int write, struct page **pages) | ||
256 | { | ||
257 | return 0; | ||
258 | } | ||
259 | EXPORT_SYMBOL_GPL(__get_user_pages_fast); | ||
260 | |||
248 | /** | 261 | /** |
249 | * get_user_pages_fast() - pin user pages in memory | 262 | * get_user_pages_fast() - pin user pages in memory |
250 | * @start: starting user address | 263 | * @start: starting user address |