... and instead convert page_add_anon_rmap() to accept flags. Passing flags instead of bools is usually nicer either way, and we want to more often also pass RMAP_EXCLUSIVE in follow up patches when detecting that an anonymous page is exclusive: for example, when restoring an anonymous page from a writable migration entry. This is a preparation for marking an anonymous page inside page_add_anon_rmap() as exclusive when RMAP_EXCLUSIVE is passed.
Showing the changes to include (1 of 7 files). Show all
Unified · Split
| @@ -183,8 +183,6 @@ typedef int __bitwise rmap_t; · 182 unmodified lines | ||
| 183 | 183 | */ |
| 184 | 184 | void page_move_anon_rmap(struct page *, struct vm_area_struct *); |
| 185 | 185 | void page_add_anon_rmap(struct page *, struct vm_area_struct *, |
| 186 | − unsigned long address, bool compound); | |
| 187 | −void do_page_add_anon_rmap(struct page *, struct vm_area_struct *, | |
| 188 | 186 | unsigned long address, rmap_t flags); |
| 189 | 187 | void page_add_new_anon_rmap(struct page *, struct vm_area_struct *, |
| 190 | 188 | unsigned long address, bool compound); |