Re: [PATCH] mm/rmap: Convert rmap_t into enum rmap_flags

From: David Hildenbrand
Date: Fri Jul 14 2023 - 02:48:05 EST


On 14.07.23 08:14, Anshuman Khandual wrote:
rmap_t tracks bitwise positions for various page reverse map related flags.
enum could provide more compact representation. This converts these flags
into an enum listing, without any functional change.

Cc: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
Cc: "Matthew Wilcox (Oracle)" <willy@xxxxxxxxxxxxx>
Cc: "Kirill A. Shutemov" <kirill.shutemov@xxxxxxxxxxxxxxx>
Cc: Hugh Dickins <hughd@xxxxxxxxxx>
Cc: David Hildenbrand <david@xxxxxxxxxx>
Cc: linux-mm@xxxxxxxxx
Cc: linux-kernel@xxxxxxxxxxxxxxx
Signed-off-by: Anshuman Khandual <anshuman.khandual@xxxxxxx>
---
This applies on v6.5-rc1

No,

please read Documentation/dev-tools/sparse.rst for "Using sparse for typechecking".

--
Cheers,

David / dhildenb