diff options
author | Kirill A. Shutemov <kirill.shutemov@linux.intel.com> | 2014-08-06 19:08:07 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-08-06 21:01:22 -0400 |
commit | 3a91053aebb23205caf67927be00c54cef6424b3 (patch) | |
tree | 5ad698d735a0513f1a3e918a4696a5931cafdd55 /mm | |
parent | aecd6f44266c13b8709245b21ded2d19291ab070 (diff) |
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>
Diffstat (limited to 'mm')
-rw-r--r-- | mm/memory.c | 3 |
1 files changed, 2 insertions, 1 deletions
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, | |||
2766 | update_mmu_cache(vma, address, pte); | 2766 | update_mmu_cache(vma, address, pte); |
2767 | } | 2767 | } |
2768 | 2768 | ||
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); | ||
2770 | 2771 | ||
2771 | #ifdef CONFIG_DEBUG_FS | 2772 | #ifdef CONFIG_DEBUG_FS |
2772 | static int fault_around_bytes_get(void *data, u64 *val) | 2773 | static int fault_around_bytes_get(void *data, u64 *val) |