Skip to contentSkip to conversation

RFC: possible fixing a preposition

PATCH In review Zhouyi Zhou 2 participants 5 messages May 18, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 RFC: possible fixing a preposition

hi, Paul

In appendix B.7: "Lines 3 and 4 simply add one to
the global free-running rcu_gp_ctr variable"

I looked up webster online dictionary
https://www.merriam-webster.com/dictionary/add%20to
it says "Definition of add to" is "to make (something) larger, better, or greater"
meanwhile rcu_gp_ctr is not changed in this statement.

My native language is not English, I try to search the web for an example, and I think if replace 'to' with 'and' maybe a better choice.

Maybe my proposal is not necessary.

Thanks for your time.

Best Wishes
Zhouyi

---
 appendix/toyrcu/toyrcu.tex | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
appendix/toyrcu/toyrcu.tex +1 -1
index be77c045..dd759ba7 100644
@@ -976,7 +976,7 @@ The resulting \co{rcu_read_lock()} implementation is extremely
 straightforward.
 \begin{fcvref}[ln:defer:rcu:read_lock_unlock:lock]
 \Clnref{gp1,gp2} simply
-add one to the global free-running \co{rcu_gp_ctr}
+add one and the global free-running \co{rcu_gp_ctr}
 variable and stores the resulting odd-numbered value into the
 \co{rcu_reader_gp} per-thread variable.
 \Clnref{mb} executes a memory barrier to prevent the content of the
Signature · 1 line
2.25.1
#1 lore raw
Quoted 10 lines · Zhouyi Zhou

hi, Paul

In appendix B.7: "Lines 3 and 4 simply add one to
the global free-running rcu_gp_ctr variable"

I looked up webster online dictionary
https://www.merriam-webster.com/dictionary/add%20to
it says "Definition of add to" is "to make (something) larger, better, or greater"
meanwhile rcu_gp_ctr is not changed in this statement.

In this case, "add" as in "addition" as in arithmetic, similar to the C-language "+=" operator. But...

Quoted 7 lines

My native language is not English, I try to search the web for an example, and I think if replace 'to' with 'and' maybe a better choice.

Maybe my proposal is not necessary.

Thanks for your time.

...this one falls into the "correct but confusing" bucket.

Would "add the value one to the global free-running rcu_gp_ctr variable" work better for you?

Thanx, Paul

Quoted 22 lines

Best Wishes
Zhouyi

---
 appendix/toyrcu/toyrcu.tex | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
appendix/toyrcu/toyrcu.tex +1 -1
index be77c045..dd759ba7 100644
@@ -976,7 +976,7 @@ The resulting \co{rcu_read_lock()} implementation is extremely
 straightforward.
 \begin{fcvref}[ln:defer:rcu:read_lock_unlock:lock]
 \Clnref{gp1,gp2} simply
-add one to the global free-running \co{rcu_gp_ctr}
+add one and the global free-running \co{rcu_gp_ctr}
 variable and stores the resulting odd-numbered value into the
 \co{rcu_reader_gp} per-thread variable.
 \Clnref{mb} executes a memory barrier to prevent the content of the
Signature · 1 line
2.25.1
#2 lore raw

Thanks Paul for reviewing my incorrect proposal.

Quoted 3 lines · Paul E. McKenney

In this case, "add" as in "addition" as in arithmetic, similar to the C-language "+=" operator. But...

I see, my English is improved a lot by this case, thank you

Quoted 3 lines

Would "add the value one to the global free-running rcu_gp_ctr variable" work better for you?

"add the value one to the global free-running rcu_gp_ctr variable" looks great to me.

Thanks again
Cheers
Zhouyi

#3 lore raw
Quoted 1 line · Zhouyi Zhou

Thanks Paul for reviewing my incorrect proposal.

No problem! After all, if I were ever to have to write a document in Chinese, I would need quite a bit of help. Like the help you are currently providing by doing this translation. ;-)

Quoted 10 lines · Paul E. McKenney
Quoted 3 lines

In this case, "add" as in "addition" as in arithmetic, similar to the C-language "+=" operator. But...

I see, my English is improved a lot by this case, thank you

Quoted 3 lines

Would "add the value one to the global free-running rcu_gp_ctr variable" work better for you?

"add the value one to the global free-running rcu_gp_ctr variable" looks great to me.

Very good! How about as shown below?

Thanx, Paul

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

commit 498ad5f93ea7a531bd79592b08c072ebd73bb188

Author: Paul E. McKenney <[email protected]>
Date:   Tue May 18 11:34:25 2021 -0700

appendix/toyrcu: Wordsmith "add the value one to"

appendix/toyrcu/toyrcu.tex +1 -1
index 9e5c01d5..39e43e30 100644
@@ -976,7 +976,7 @@ The resulting \co{rcu_read_lock()} implementation is extremely
 straightforward.
 \begin{fcvref}[ln:defer:rcu:read_lock_unlock:lock]
 \Clnref{gp1,gp2} simply
-add one to the global free-running \co{rcu_gp_ctr}
+add the value one to the global free-running \co{rcu_gp_ctr}
 variable and stores the resulting odd-numbered value into the
 \co{rcu_reader_gp} per-thread variable.
 \Clnref{mb} executes a memory barrier to prevent the content of the
#4 lore raw
Quoted 3 lines

No problem! After all, if I were ever to have to write a document in Chinese, I would need quite a bit of help. Like the help you are currently providing by doing this translation. ;-)

I'm so flattered ;-).
It is a great honor for me to work with both of you.

appendix/toyrcu/toyrcu.tex The resulting \co{rcu_read_lock()} implementation is extremely · line 979

Quoted 3 lines

Very good! How about as shown below?

appendix/toyrcu/toyrcu.tex +1 -1
-add one to the global free-running \co{rcu_gp_ctr}
+add the value one to the global free-running \co{rcu_gp_ctr}

I enjoy this commit very much.

Thank you
Cheers
Zhouyi