diff options
Diffstat (limited to 'include/linux/rmap.h')
| -rw-r--r-- | include/linux/rmap.h | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/include/linux/rmap.h b/include/linux/rmap.h index b66c2110cb1f..be574506e6a9 100644 --- a/include/linux/rmap.h +++ b/include/linux/rmap.h | |||
| @@ -72,10 +72,9 @@ struct anon_vma_chain { | |||
| 72 | }; | 72 | }; |
| 73 | 73 | ||
| 74 | enum ttu_flags { | 74 | enum ttu_flags { |
| 75 | TTU_UNMAP = 0, /* unmap mode */ | 75 | TTU_UNMAP = 1, /* unmap mode */ |
| 76 | TTU_MIGRATION = 1, /* migration mode */ | 76 | TTU_MIGRATION = 2, /* migration mode */ |
| 77 | TTU_MUNLOCK = 2, /* munlock mode */ | 77 | TTU_MUNLOCK = 4, /* munlock mode */ |
| 78 | TTU_ACTION_MASK = 0xff, | ||
| 79 | 78 | ||
| 80 | TTU_IGNORE_MLOCK = (1 << 8), /* ignore mlock */ | 79 | TTU_IGNORE_MLOCK = (1 << 8), /* ignore mlock */ |
| 81 | TTU_IGNORE_ACCESS = (1 << 9), /* don't age */ | 80 | TTU_IGNORE_ACCESS = (1 << 9), /* don't age */ |
| @@ -183,14 +182,10 @@ static inline void page_dup_rmap(struct page *page) | |||
| 183 | */ | 182 | */ |
| 184 | int page_referenced(struct page *, int is_locked, | 183 | int page_referenced(struct page *, int is_locked, |
| 185 | struct mem_cgroup *memcg, unsigned long *vm_flags); | 184 | struct mem_cgroup *memcg, unsigned long *vm_flags); |
| 186 | int page_referenced_one(struct page *, struct vm_area_struct *, | ||
| 187 | unsigned long address, void *arg); | ||
| 188 | 185 | ||
| 189 | #define TTU_ACTION(x) ((x) & TTU_ACTION_MASK) | 186 | #define TTU_ACTION(x) ((x) & TTU_ACTION_MASK) |
| 190 | 187 | ||
| 191 | int try_to_unmap(struct page *, enum ttu_flags flags); | 188 | int try_to_unmap(struct page *, enum ttu_flags flags); |
| 192 | int try_to_unmap_one(struct page *, struct vm_area_struct *, | ||
| 193 | unsigned long address, void *arg); | ||
| 194 | 189 | ||
| 195 | /* | 190 | /* |
| 196 | * Called from mm/filemap_xip.c to unmap empty zero page | 191 | * Called from mm/filemap_xip.c to unmap empty zero page |
