Skip to contentSkip to conversation

fs: Fix typo in access_override_creds()

PATCH RESEND In review gaoyusong 2 participants 3 messages Oct 30, 2023 – Oct 31, 2023 VFS

lore
Share & tools
lore

gaoyusong

author
#0 lore raw

PATCH RESEND 1/1 fs: Fix typo in access_override_creds()

From: Yusong Gao <[email protected]>

Fix typo in access_override_creds(), modify non-RCY to non-RCU.

---
 fs/open.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/open.c +1 -1
index 98f6601fbac6..72eb20a8256a 100644
@@ -442,7 +442,7 @@ static const struct cred *access_override_creds(void)
 	 * 'get_current_cred()' function), that will clear the
 	 * non_rcu field, because now that other user may be
 	 * expecting RCU freeing. But normal thread-synchronous
-	 * cred accesses will keep things non-RCY.
+	 * cred accesses will keep things non-RCU.
 	 */
 	override_cred->non_rcu = 1;
 
Signature · 1 line
2.34.1
#1 lore raw
Quoted 14 lines · gaoyusong

From: Yusong Gao <[email protected]>

Fix typo in access_override_creds(), modify non-RCY to non-RCU.

---
 fs/open.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/open.c +0 -0
index 98f6601fbac6..72eb20a8256a 100644

fs/open.c static const struct cred *access_override_creds(void) · line 445

Quoted 5 lines
fs/open.c +1 -1
@@ -442,7 +442,7 @@ static const struct cred *access_override_creds(void)
 	 * 'get_current_cred()' function), that will clear the
 	 * non_rcu field, because now that other user may be
 	 * expecting RCU freeing. But normal thread-synchronous
-	 * cred accesses will keep things non-RCY.
+	 * cred accesses will keep things non-RCU.

I think this might have been intended as a joke aka "non-RCY" as in "non-racy" here. I think best would be to change it to something like "cred accesses will keep things non-racy and allows to avoid rcu freeing" if you care enough.

author
#2 lore raw
Quoted 10 lines · Christian Brauner
Quoted 9 lines · gaoyusong

From: Yusong Gao <[email protected]>

Fix typo in access_override_creds(), modify non-RCY to non-RCU.

---
 fs/open.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 15 lines

fs/open.c static const struct cred *access_override_creds(void) · line 445

Quoted 10 lines
fs/open.c +1 -1
index 98f6601fbac6..72eb20a8256a 100644
@@ -442,7 +442,7 @@ static const struct cred *access_override_creds(void)
 	 * 'get_current_cred()' function), that will clear the
 	 * non_rcu field, because now that other user may be
 	 * expecting RCU freeing. But normal thread-synchronous
-	 * cred accesses will keep things non-RCY.
+	 * cred accesses will keep things non-RCU.

I think this might have been intended as a joke aka "non-RCY" as in "non-racy" here. I think best would be to change it to something like "cred accesses will keep things non-racy and allows to avoid rcu freeing" if you care enough.

I see what you mean. Thanks for your reply. I don't think any more changes are needed when I figure out it.