Re: [PATCH] mm/slub: helper macro __ATTR_XX to make code more clear

From: Vlastimil Babka
Date: Mon Mar 07 2022 - 12:11:12 EST


On 3/6/22 23:11, David Rientjes wrote:
> On Sun, 6 Mar 2022, Lianjie Zhang wrote:
>
>> Signed-off-by: Lianjie Zhang <zhanglianjie@xxxxxxxxxxxxx>
>
> And VERIFY_OCTAL_PERMISSIONS() can help validate any future change.
>
> Acked-by: David Rientjes <rientjes@xxxxxxxxxx>

Ok, adding with adjusted subject and non-empty message:

mm/slub: use helper macro __ATTR_XX_MODE for SLAB_ATTR(_RO)

This allows more concise code, and VERIFY_OCTAL_PERMISSIONS() can help
validate any future change.