Re: [PATCH] mm/vmstat: Utilize designated initializers for the vmstat_text array
From: Vlastimil Babka
Date: Mon Jun 02 2025 - 05:58:22 EST
On 6/2/25 11:23, Kirill A. Shutemov wrote:
> The vmstat_text array defines labels for counters displayed in
> /proc/vmstat. The current definition of the array implies a specific
> order of the counters in their enums, making it fragile.
>
> To make it clear which counter the label is for, use designated
> initializers.
>
> Signed-off-by: Kirill A. Shutemov <kirill.shutemov@xxxxxxxxxxxxxxx>
Acked-by: Vlastimil Babka <vbabka@xxxxxxx>