On Tue, 29 Jul 2014, Kirill A. Shutemov wrote: > fault_around_bytes can only be changed via debugfs. Let's mark it > read-mostly. > > Signed-off-by: Kirill A. Shutemov <kirill.shutemov@xxxxxxxxxxxxxxx> Suggested-by: David Rientjes <rientjes@xxxxxxxxxx> Acked-by: David Rientjes <rientjes@xxxxxxxxxx> > --- > mm/memory.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/mm/memory.c b/mm/memory.c > index 2ce07dc9b52b..ed3073d6a0e0 100644 > --- a/mm/memory.c > +++ b/mm/memory.c > @@ -2768,7 +2768,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); > > static inline unsigned long fault_around_pages(void) > { -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxx. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>