]> www.infradead.org Git - users/willy/pagecache.git/commit
mm: Use entire_mapcount in __page_dup_rmap()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Fri, 30 Dec 2022 20:16:03 +0000 (15:16 -0500)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Tue, 3 Jan 2023 04:00:55 +0000 (23:00 -0500)
commitba791a111837d51bb03cd209e98812796b9282e3
tree030a335914ade6d1e23c9d743848abfa6b76f27e
parent1cc1167fec514c7c9875102f8fc4d2ba3c6af440
mm: Use entire_mapcount in __page_dup_rmap()

Remove the use of the compound_mapcount_ptr() wrapper, and add an
assertion that we're not passing a tail page if we're duplicating a PMD.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
include/linux/rmap.h