On 24.02.22 18:48, Linus Torvalds wrote: > On Thu, Feb 24, 2022 at 9:41 AM David Hildenbrand <david@xxxxxxxxxx> wrote: >> >> Actually, I thought about doing it similarly to what I did in >> page_alloc.c with fpi_t: >> >> typedef int __bitwise fpi_t; >> >> #define FPI_NONE ((__force fpi_t)0) >> >> I can do something similar here. > > Yeah, that looks good. And then the relevant function declarations and > definitions also have that explicit type there instead of 'int', which > adds a bit more documentation for people grepping for use. > While at it already, I'll also add a patch to drop the "bool compound" parameter from page_add_new_anon_rmap() (description only) Author: David Hildenbrand <david@xxxxxxxxxx> Date: Fri Feb 25 09:38:11 2022 +0100 mm/rmap: drop "compound" parameter from page_add_new_anon_rmap() New anonymous pages are always mapped natively: only THP/khugepagd code maps a new compound anonymous page and passes "true". Otherwise, we're just dealing with simple, non-compound pages. Let's give the interface clearer semantics and document these. Signed-off-by: David Hildenbrand <david@xxxxxxxxxx> -- Thanks, David / dhildenb