huge_memory.c: document huge page splitting rules more thoroughly
authorJohn Hubbard <jhubbard@nvidia.com>
Mon, 25 Mar 2024 04:44:52 +0000 (21:44 -0700)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 26 Apr 2024 03:56:11 +0000 (20:56 -0700)
commita8353dc98f3ae570297e5e25cc05fc7d6b7f0e7b
treeab3a6ffbd4ae9660f9c11c6e9eec4d467b45285d
parentd4e6b397be1b403991a028ea59dbe61dedc9bcc0
huge_memory.c: document huge page splitting rules more thoroughly

1. Add information about the behavior of huge page splitting, with
   respect to page/folio refcounts, and gup/pup pins.

2. Update and clarify the existing documentation, to compensate for the
   ravages of time and code change.

Link: https://lkml.kernel.org/r/20240325044452.217463-1-jhubbard@nvidia.com
Signed-off-by: John Hubbard <jhubbard@nvidia.com>
Reviewed-by: Zi Yan <ziy@nvidia.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Cc: Matthew Wilcox <willy@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/huge_memory.c