From: Andrea Arcangeli Date: Mon, 8 Oct 2012 23:31:52 +0000 (-0700) Subject: mm: mmu_notifier: make the mmu_notifier srcu static X-Git-Tag: upstream/snapshot3+hdmi~6473^2~79 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=70400303ce0c4ced3139499c676d5c79636b0c72;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git 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 Cc: Xiao Guangrong Cc: Sagi Grimberg Cc: Peter Zijlstra Cc: Haggai Eran Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/mmu_notifier.c b/mm/mmu_notifier.c index 947df83..c297142 100644 --- a/mm/mmu_notifier.c +++ b/mm/mmu_notifier.c @@ -20,7 +20,7 @@ #include /* 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;