diff options
Diffstat (limited to 'include/linux/rmap.h')
-rw-r--r-- | include/linux/rmap.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/rmap.h b/include/linux/rmap.h index 1f65af44c6d2..0b4913a4a344 100644 --- a/include/linux/rmap.h +++ b/include/linux/rmap.h | |||
@@ -89,6 +89,9 @@ static inline void page_dup_rmap(struct page *page) | |||
89 | */ | 89 | */ |
90 | int page_referenced(struct page *, int is_locked, | 90 | int page_referenced(struct page *, int is_locked, |
91 | struct mem_cgroup *cnt, unsigned long *vm_flags); | 91 | struct mem_cgroup *cnt, unsigned long *vm_flags); |
92 | int page_referenced_one(struct page *, struct vm_area_struct *, | ||
93 | unsigned long address, unsigned int *mapcount, unsigned long *vm_flags); | ||
94 | |||
92 | enum ttu_flags { | 95 | enum ttu_flags { |
93 | TTU_UNMAP = 0, /* unmap mode */ | 96 | TTU_UNMAP = 0, /* unmap mode */ |
94 | TTU_MIGRATION = 1, /* migration mode */ | 97 | TTU_MIGRATION = 1, /* migration mode */ |
@@ -102,6 +105,8 @@ enum ttu_flags { | |||
102 | #define TTU_ACTION(x) ((x) & TTU_ACTION_MASK) | 105 | #define TTU_ACTION(x) ((x) & TTU_ACTION_MASK) |
103 | 106 | ||
104 | int try_to_unmap(struct page *, enum ttu_flags flags); | 107 | int try_to_unmap(struct page *, enum ttu_flags flags); |
108 | int try_to_unmap_one(struct page *, struct vm_area_struct *, | ||
109 | unsigned long address, enum ttu_flags flags); | ||
105 | 110 | ||
106 | /* | 111 | /* |
107 | * Called from mm/filemap_xip.c to unmap empty zero page | 112 | * Called from mm/filemap_xip.c to unmap empty zero page |