From 3a91053aebb23205caf67927be00c54cef6424b3 Mon Sep 17 00:00:00 2001 From: "Kirill A. Shutemov" Date: Wed, 6 Aug 2014 16:08:07 -0700 Subject: [PATCH] mm: mark fault_around_bytes __read_mostly fault_around_bytes can only be changed via debugfs. Let's mark it read-mostly. Signed-off-by: Kirill A. Shutemov Suggested-by: David Rientjes Acked-by: David Rientjes Cc: Dave Hansen Cc: Andrey Ryabinin Cc: Sasha Levin Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- mm/memory.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mm/memory.c b/mm/memory.c index dc47261c4686..5596d77e8656 100644 --- a/mm/memory.c +++ b/mm/memory.c @@ -2766,7 +2766,8 @@ void do_set_pte(struct vm_area_struct *vma, unsigned long address, update_mmu_cache(vma, address, pte); } -static unsigned long fault_around_bytes = rounddown_pow_of_two(65536); +static unsigned long fault_around_bytes __read_mostly = + rounddown_pow_of_two(65536); #ifdef CONFIG_DEBUG_FS static int fault_around_bytes_get(void *data, u64 *val) -- GitLab