Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Gregory Price and committed by
Andrew Morton
348ced3d ccf9eb32

+1 -1
+1 -1
include/linux/hugetlb.h
··· 171 171 172 172 struct address_space *hugetlb_folio_mapping_lock_write(struct folio *folio); 173 173 174 - extern int sysctl_hugetlb_shm_group; 174 + extern int sysctl_hugetlb_shm_group __read_mostly; 175 175 extern struct list_head huge_boot_pages[MAX_NUMNODES]; 176 176 177 177 void hugetlb_bootmem_alloc(void);