mm/slub: use helper macro __ATTR_XX_MODE for SLAB_ATTR(_RO)
authorLianjie Zhang <zhanglianjie@uniontech.com>
Sun, 6 Mar 2022 07:38:18 +0000 (15:38 +0800)
committerVlastimil Babka <vbabka@suse.cz>
Mon, 7 Mar 2022 17:08:35 +0000 (18:08 +0100)
commitd1d28bd9a0f896c7d2f7147ca631f86c49b16d7f
treeafeb4745e8f949cb13400331e796b27108e984fd
parent7d6b6cc355378a66044cbd25ccee4153bf60dea9
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.

Signed-off-by: Lianjie Zhang <zhanglianjie@uniontech.com>
Acked-by: David Rientjes <rientjes@google.com>
Signed-off-by: Vlastimil Babka <vbabka@suse.cz>
Link: https://lore.kernel.org/r/20220306073818.15089-1-zhanglianjie@uniontech.com
mm/slub.c