aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/rmap.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/rmap.h')
-rw-r--r--include/linux/rmap.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/include/linux/rmap.h b/include/linux/rmap.h
index 8dff2ffab82..4c4a2d4d289 100644
--- a/include/linux/rmap.h
+++ b/include/linux/rmap.h
@@ -85,7 +85,18 @@ static inline void page_dup_rmap(struct page *page, struct vm_area_struct *vma,
85 */ 85 */
86int page_referenced(struct page *, int is_locked, 86int page_referenced(struct page *, int is_locked,
87 struct mem_cgroup *cnt, unsigned long *vm_flags); 87 struct mem_cgroup *cnt, unsigned long *vm_flags);
88int try_to_unmap(struct page *, int ignore_refs); 88enum ttu_flags {
89 TTU_UNMAP = 0, /* unmap mode */
90 TTU_MIGRATION = 1, /* migration mode */
91 TTU_MUNLOCK = 2, /* munlock mode */
92 TTU_ACTION_MASK = 0xff,
93
94 TTU_IGNORE_MLOCK = (1 << 8), /* ignore mlock */
95 TTU_IGNORE_ACCESS = (1 << 9), /* don't age */
96};
97#define TTU_ACTION(x) ((x) & TTU_ACTION_MASK)
98
99int try_to_unmap(struct page *, enum ttu_flags flags);
89 100
90/* 101/*
91 * Called from mm/filemap_xip.c to unmap empty zero page 102 * Called from mm/filemap_xip.c to unmap empty zero page