From: Kirill A. Shutemov Date: Wed, 6 Aug 2014 23:08:07 +0000 (-0700) Subject: mm: mark fault_around_bytes __read_mostly X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3a91053aebb23205caf67927be00c54cef6424b3;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 --- 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)