[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20251121194859.265259-2-gourry@gourry.net>
Date: Fri, 21 Nov 2025 14:48:59 -0500
From: Gregory Price <gourry@...rry.net>
To: linux-mm@...ck.org
Cc: kernel-team@...a.com,
muchun.song@...ux.dev,
osalvador@...e.de,
david@...hat.com,
linux-kernel@...r.kernel.org,
Andrew Morton <akpm@...ux-foundation.org>
Subject: [RESEND PATCH 2/2] hugetlb: add __read_mostly to sysctl_hugetlb_shm_group
sysctl bits are mostly-read values.
Suggested-by: Andrew Morton <akpm@...ux-foundation.org>
Signed-off-by: Gregory Price <gourry@...rry.net>
Acked-by: Oscar Salvador <osalvador@...e.de>
---
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 d5282d52493b..d6705157c41d 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.1
Powered by blists - more mailing lists