diff options
author | Andrea Arcangeli <[email protected]> | 2012-10-08 16:31:52 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2012-10-09 16:22:43 +0900 |
commit | 70400303ce0c4ced3139499c676d5c79636b0c72 (patch) | |
tree | c9203f4dad6d1147739c264c24cfea625b1ff026 | |
parent | 1e8537baacd59e96bbe5f8d3d32feafd11f509fe (diff) |
mm: mmu_notifier: make the mmu_notifier srcu static
The variable must be static especially given the variable name.
s/RCU/SRCU/ over a few comments.
Signed-off-by: Andrea Arcangeli <[email protected]>
Cc: Xiao Guangrong <[email protected]>
Cc: Sagi Grimberg <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Haggai Eran <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
-rw-r--r-- | mm/mmu_notifier.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mm/mmu_notifier.c b/mm/mmu_notifier.c index 947df83dccb0..c297142f0fe6 100644 --- a/mm/mmu_notifier.c +++ b/mm/mmu_notifier.c @@ -20,7 +20,7 @@ #include <linux/slab.h> /* global SRCU for all MMs */ -struct srcu_struct srcu; +static struct srcu_struct srcu; /* * This function can't run concurrently against mmu_notifier_register @@ -41,7 +41,7 @@ void __mmu_notifier_release(struct mm_struct *mm) int id; /* - * RCU here will block mmu_notifier_unregister until + * SRCU here will block mmu_notifier_unregister until * ->release returns. */ id = srcu_read_lock(&srcu); @@ -302,7 +302,7 @@ void mmu_notifier_unregister(struct mmu_notifier *mn, struct mm_struct *mm) if (!hlist_unhashed(&mn->hlist)) { /* - * RCU here will force exit_mmap to wait ->release to finish + * SRCU here will force exit_mmap to wait ->release to finish * before freeing the pages. */ int id; |