Re: [PATCH] srcu: Fix a typo in comment "amoritized"->"amortized"

From: Paul E. McKenney
Date: Sun Apr 19 2020 - 11:15:30 EST


On Sat, Apr 18, 2020 at 07:46:47PM +0800, Ethon Paul wrote:
> There is a typo in comment, fix it.
>
> Signed-off-by: Ethon Paul <ethp@xxxxxx>

Good eyes!!! Queued, thank you!

I did edit the commit log as shown below. Please let me know if I messed
anything up.

Thanx, Paul

------------------------------------------------------------------------

commit 496c9c0dc7b259ee93ea91789a20e09421e840c1
Author: Ethon Paul <ethp@xxxxxx>
Date: Sat Apr 18 19:46:47 2020 +0800

srcu: Fix a typo in comment "amoritized"->"amortized"

This commit fixes a typo in a comment.

Signed-off-by: Ethon Paul <ethp@xxxxxx>
Signed-off-by: Paul E. McKenney <paulmck@xxxxxxxxxx>

diff --git a/kernel/rcu/srcutree.c b/kernel/rcu/srcutree.c
index 6d3ef70..8ff71e5 100644
--- a/kernel/rcu/srcutree.c
+++ b/kernel/rcu/srcutree.c
@@ -766,7 +766,7 @@ static void srcu_flip(struct srcu_struct *ssp)
* it, if this function was preempted for enough time for the counters
* to wrap, it really doesn't matter whether or not we expedite the grace
* period. The extra overhead of a needlessly expedited grace period is
- * negligible when amoritized over that time period, and the extra latency
+ * negligible when amortized over that time period, and the extra latency
* of a needlessly non-expedited grace period is similarly negligible.
*/
static bool srcu_might_be_idle(struct srcu_struct *ssp)