History

mm/rmap: remove do_page_add_anon_rmap()

... 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.

David Hildenbrand committed 4 years ago

Commit f1e2db11 parent 14f91357 files · +8 −21Browse files

Showing the changes to include (1 of 7 files). Show all

Unified · Split

include/linux/rmap.h+0−2
@@ -183,8 +183,6 @@ typedef int __bitwise rmap_t; · 182 unmodified lines
183183 */
184184 void page_move_anon_rmap(struct page *, struct vm_area_struct *);
185185 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 *,
188186 unsigned long address, rmap_t flags);
189187 void page_add_new_anon_rmap(struct page *, struct vm_area_struct *,
190188 unsigned long address, bool compound);