Re: [PATCH] hugeltb: Mark hugelb_max_hstate __read_mostly
From: Michal Hocko <hidden>
Date: 2012-06-14 14:13:00
On Thu 14-06-12 19:26:18, Aneesh Kumar K.V wrote:
quoted hunk ↗ jump to hunk
From: "Aneesh Kumar K.V" <redacted> Signed-off-by: Aneesh Kumar K.V <redacted> --- include/linux/hugetlb.h | 2 +- mm/hugetlb.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)diff --git a/include/linux/hugetlb.h b/include/linux/hugetlb.h index 9650bb1..0f0877e 100644 --- a/include/linux/hugetlb.h +++ b/include/linux/hugetlb.h@@ -23,7 +23,7 @@ struct hugepage_subpool { }; extern spinlock_t hugetlb_lock; -extern int hugetlb_max_hstate; +extern int hugetlb_max_hstate __read_mostly;
It should be used only for definition -- Michal Hocko SUSE Labs SUSE LINUX s.r.o. Lihovarska 1060/12 190 00 Praha 9 Czech Republic -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>