mm: use entire_mapcount in __page_dup_rmap()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Wed, 11 Jan 2023 14:28:57 +0000 (14:28 +0000)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 3 Feb 2023 06:32:57 +0000 (22:32 -0800)
commitc7f84b5723f1a60becd79d895ab214a7d5ee93c1
treec4d4144edba7db974408f8d1feeaa15c20c3f58b
parentdb4e5dbdcdd55482ab23bf4a0ae6746f93efb0d9
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.

Link: https://lkml.kernel.org/r/20230111142915.1001531-12-willy@infradead.org
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/rmap.h