mm: clarify folio_likely_mapped_shared() documentation for KSM folios
authorDavid Hildenbrand <david@redhat.com>
Wed, 31 Jul 2024 16:07:58 +0000 (18:07 +0200)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 2 Sep 2024 03:25:57 +0000 (20:25 -0700)
commit17d5f38b33b66210c5a46af639c47fddfe1c5b4d
tree5060c5271442dbd25aa1724906ca7d0cf7dbda55
parent6654d28995d2d1d3e65c653f471a635cd21c99ea
mm: clarify folio_likely_mapped_shared() documentation for KSM folios

For KSM folios, the function actually does what it is supposed to do: even
having multiple mappings inside the same MM is considered "sharing", as
there is no real relationship between these KSM page mappings -- in
contrast to mapping the same file range twice and having the same
pagecache page mapped twice.

Link: https://lkml.kernel.org/r/20240731160758.808925-1-david@redhat.com
Signed-off-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/mm.h