Skip to content

Commit 3a91053

Browse files
kiryltorvalds
authored andcommitted
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 <kirill.shutemov@linux.intel.com> Suggested-by: David Rientjes <rientjes@google.com> Acked-by: David Rientjes <rientjes@google.com> Cc: Dave Hansen <dave.hansen@intel.com> Cc: Andrey Ryabinin <a.ryabinin@samsung.com> Cc: Sasha Levin <sasha.levin@oracle.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent aecd6f4 commit 3a91053

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎mm/memory.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2766,7 +2766,8 @@ void do_set_pte(struct vm_area_struct *vma, unsigned long address,
27662766
update_mmu_cache(vma, address, pte);
27672767
}
27682768

2769-
static unsigned long fault_around_bytes = rounddown_pow_of_two(65536);
2769+
static unsigned long fault_around_bytes __read_mostly =
2770+
rounddown_pow_of_two(65536);
27702771

27712772
#ifdef CONFIG_DEBUG_FS
27722773
static int fault_around_bytes_get(void *data, u64 *val)

0 commit comments

Comments
 (0)