aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/rmap.h
diff options
context:
space:
mode:
authorAndi Kleen <andi@firstfloor.org>2009-09-16 05:50:04 -0400
committerAndi Kleen <ak@linux.intel.com>2009-09-16 05:50:04 -0400
commit10be22dfe1e6ad978269dc275147e0ed049187bb (patch)
treed00418a59d9de0aadd092559d92f0d348d87a4b1 /include/linux/rmap.h
parentd466f2fcb32cd97fd586bfa33f5dba3ac78aadb0 (diff)
HWPOISON: Export some rmap vma locking to outside world
Needed for later patch that walks rmap entries on its own. This used to be very frowned upon, but memory-failure.c does some rather specialized rmap walking and rmap has been stable for quite some time, so I think it's ok now to export it. Signed-off-by: Andi Kleen <ak@linux.intel.com>
Diffstat (limited to 'include/linux/rmap.h')
-rw-r--r--include/linux/rmap.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/rmap.h b/include/linux/rmap.h
index bf116d0dbf23..8dff2ffab82c 100644
--- a/include/linux/rmap.h
+++ b/include/linux/rmap.h
@@ -112,6 +112,12 @@ int page_mkclean(struct page *);
112 */ 112 */
113int try_to_munlock(struct page *); 113int try_to_munlock(struct page *);
114 114
115/*
116 * Called by memory-failure.c to kill processes.
117 */
118struct anon_vma *page_lock_anon_vma(struct page *page);
119void page_unlock_anon_vma(struct anon_vma *anon_vma);
120
115#else /* !CONFIG_MMU */ 121#else /* !CONFIG_MMU */
116 122
117#define anon_vma_init() do {} while (0) 123#define anon_vma_init() do {} while (0)