Skip to content

Commit 348ced3

Browse files
Gregory Priceakpm00
authored andcommitted
hugetlb: add __read_mostly to sysctl_hugetlb_shm_group
sysctl bits are mostly-read values. Link: https://lkml.kernel.org/r/20251121194859.265259-2-gourry@gourry.net Signed-off-by: Gregory Price <gourry@gourry.net> Suggested-by: Andrew Morton <akpm@linux-foundation.org> Acked-by: Oscar Salvador <osalvador@suse.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
1 parent ccf9eb3 commit 348ced3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

include/linux/hugetlb.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ bool hugetlbfs_pagecache_present(struct hstate *h,
171171

172172
struct address_space *hugetlb_folio_mapping_lock_write(struct folio *folio);
173173

174-
extern int sysctl_hugetlb_shm_group;
174+
extern int sysctl_hugetlb_shm_group __read_mostly;
175175
extern struct list_head huge_boot_pages[MAX_NUMNODES];
176176

177177
void hugetlb_bootmem_alloc(void);

0 commit comments

Comments
 (0)