aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mm.h
diff options
context:
space:
mode:
authorPeter Zijlstra <a.p.zijlstra@chello.nl>2009-06-15 06:31:37 -0400
committerIngo Molnar <mingo@elte.hu>2009-06-15 09:57:51 -0400
commit465a454f254ee2ff7acc4aececbe31f8af046bc0 (patch)
tree459a4ba588c9ccd2320e20d6f9ae66538f2ebfea /include/linux/mm.h
parent75f937f24bd9c003dcb9d7d5509f23459f1f6000 (diff)
x86, mm: Add __get_user_pages_fast()
Introduce a gup_fast() variant which is usable from IRQ/NMI context. Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> CC: Nick Piggin <npiggin@suse.de> Cc: Mike Galbraith <efault@gmx.de> Cc: Paul Mackerras <paulus@samba.org> Cc: Arnaldo Carvalho de Melo <acme@redhat.com> LKML-Reference: <new-submission> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/linux/mm.h')
-rw-r--r--include/linux/mm.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/mm.h b/include/linux/mm.h
index ad613ed66ab0..b457bc047ab1 100644
--- a/include/linux/mm.h
+++ b/include/linux/mm.h
@@ -863,6 +863,12 @@ int get_user_pages_fast(unsigned long start, int nr_pages, int write,
863 struct page **pages); 863 struct page **pages);
864 864
865/* 865/*
866 * doesn't attempt to fault and will return short.
867 */
868int __get_user_pages_fast(unsigned long start, int nr_pages, int write,
869 struct page **pages);
870
871/*
866 * A callback you can register to apply pressure to ageable caches. 872 * A callback you can register to apply pressure to ageable caches.
867 * 873 *
868 * 'shrink' is passed a count 'nr_to_scan' and a 'gfpmask'. It should 874 * 'shrink' is passed a count 'nr_to_scan' and a 'gfpmask'. It should