projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aecd6f4
)
mm: mark fault_around_bytes __read_mostly
author
Kirill A. Shutemov
<
[email protected]
>
Wed, 6 Aug 2014 23:08:07 +0000
(16:08 -0700)
committer
Linus Torvalds
<
[email protected]
>
Thu, 7 Aug 2014 01:01:22 +0000
(18:01 -0700)
fault_around_bytes can only be changed via debugfs. Let's mark it
read-mostly.
Signed-off-by: Kirill A. Shutemov <
[email protected]
>
Suggested-by: David Rientjes <
[email protected]
>
Acked-by: David Rientjes <
[email protected]
>
Cc: Dave Hansen <
[email protected]
>
Cc: Andrey Ryabinin <
[email protected]
>
Cc: Sasha Levin <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
mm/memory.c
patch
|
blob
|
history
diff --git
a/mm/memory.c
b/mm/memory.c
index dc47261c46866ba7c13213354f15628493c941a6..5596d77e86561450753452ad0b49357e21ce199e 100644
(file)
--- 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)