[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20251008212614.86495-2-gourry@gourry.net>
Date: Wed, 8 Oct 2025 17:26:14 -0400
From: Gregory Price <gourry@...rry.net>
To: linux-mm@...ck.org
Cc: muchun.song@...ux.dev,
osalvador@...e.de,
david@...hat.com,
linux-kernel@...r.kernel.org
Subject: [PATCH 2/2] hugetlb: add __read_mostly to sysctl_hugetlb_shm_group
sysctl bits are mostly-read values.
Signed-off-by: Gregory Price <gourry@...rry.net>
---
include/linux/hugetlb.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/linux/hugetlb.h b/include/linux/hugetlb.h
index b030850975ef..7ea667d4ad5e 100644
--- a/include/linux/hugetlb.h
+++ b/include/linux/hugetlb.h
@@ -172,7 +172,7 @@ bool hugetlbfs_pagecache_present(struct hstate *h,
struct address_space *hugetlb_folio_mapping_lock_write(struct folio *folio);
-extern int sysctl_hugetlb_shm_group;
+extern int sysctl_hugetlb_shm_group __read_mostly;
extern struct list_head huge_boot_pages[MAX_NUMNODES];
void hugetlb_bootmem_alloc(void);
--
2.51.0
Powered by blists - more mailing lists