Skip to contentSkip to conversation

x86/mm/tlb: fix error word 'clleared' to 'cleared'

PATCH In review Xin Hao 3 participants 4 messages Sep 29, 2022 x86

lore
Share & tools
lore

Xin Hao

author
#0 lore raw

PATCH v2 1/1 x86/mm/tlb: fix error word 'clleared' to 'cleared'

Just correct the wrong word 'clleared' to 'cleared'

---
 arch/x86/include/asm/tlbflush.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/include/asm/tlbflush.h +1 -1
index cda3118f3b27..c80a15ef0cbc 100644
@@ -291,7 +291,7 @@ static inline bool pte_flags_need_flush(unsigned long oldflags,
 		diff &= ~_PAGE_ACCESSED;
 
 	/*
-	 * Did any of the 'flush_on_clear' flags was clleared set from between
+	 * Did any of the 'flush_on_clear' flags was cleared set from between
 	 * 'oldflags' and 'newflags'?
 	 */
 	if (diff & oldflags & flush_on_clear)

--
2.31.0

#1 lore raw

Hi--

I would say let's fix the sentence grammar, but I don't know what "cleared set" means.

Quoted 12 lines · Xin Hao

Just correct the wrong word 'clleared' to 'cleared'

---
 arch/x86/include/asm/tlbflush.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/include/asm/tlbflush.h +0 -0
index cda3118f3b27..c80a15ef0cbc 100644

arch/x86/include/asm/tlbflush.h static inline bool pte_flags_need_flush(unsigned long oldflags, · line 294

Quoted 5 lines
arch/x86/include/asm/tlbflush.h +1 -1
@@ -291,7 +291,7 @@ static inline bool pte_flags_need_flush(unsigned long oldflags,
 		diff &= ~_PAGE_ACCESSED;
 
 	/*
-	 * Did any of the 'flush_on_clear' flags was clleared set from between
+	 * Did any of the 'flush_on_clear' flags was cleared set from between

It should be more like:

* Were any of the 'flush_on_clear' flags changed between

X86 people, does that make sense to you?

Quoted 5 lines
arch/x86/include/asm/tlbflush.h +0 -1
 	 * 'oldflags' and 'newflags'?
 	 */
 	if (diff & oldflags & flush_on_clear)
--

2.31.0

Signature · 1 line
~Randy
#2 lore raw
Quoted 29 lines · Randy Dunlap

⚠ External Email

Hi--

I would say let's fix the sentence grammar, but I don't know what "cleared set" means.

Quoted 12 lines · Xin Hao

Just correct the wrong word 'clleared' to 'cleared'

---
arch/x86/include/asm/tlbflush.h | 2 +-

1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/include/asm/tlbflush.h +0 -0
index cda3118f3b27..c80a15ef0cbc 100644

arch/x86/include/asm/tlbflush.h static inline bool pte_flags_need_flush(unsigned long oldflags, · line 294

Quoted 5 lines
arch/x86/include/asm/tlbflush.h +1 -1
@@ -291,7 +291,7 @@ static inline bool pte_flags_need_flush(unsigned long oldflags,
             diff &= ~_PAGE_ACCESSED;
 
     /*
-      * Did any of the 'flush_on_clear' flags was clleared set from between
+      * Did any of the 'flush_on_clear' flags was cleared set from between

It should be more like:

Quoted 3 lines

* Were any of the 'flush_on_clear' flags changed between

X86 people, does that make sense to you?

It’s not a test whether the flags are changed, but whether they are cleared.

Let’s see if we can make it clearer with shorter sentences. How about:
“Consider the ‘flush_on_clear’ flags that are set on ‘oldflags’; Flush if any of these flags is cleared on ’newflags’”.

#3 lore raw
Quoted 33 lines · Nadav Amit
Quoted 31 lines · Randy Dunlap

⚠ External Email

Hi--

I would say let's fix the sentence grammar, but I don't know what "cleared set" means.

Quoted 12 lines · Xin Hao

Just correct the wrong word 'clleared' to 'cleared'

---
arch/x86/include/asm/tlbflush.h | 2 +-

1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/include/asm/tlbflush.h +0 -0
index cda3118f3b27..c80a15ef0cbc 100644

arch/x86/include/asm/tlbflush.h static inline bool pte_flags_need_flush(unsigned long oldflags, · line 294

Quoted 5 lines
arch/x86/include/asm/tlbflush.h +1 -1
@@ -291,7 +291,7 @@ static inline bool pte_flags_need_flush(unsigned long oldflags,
             diff &= ~_PAGE_ACCESSED;
 
     /*
-      * Did any of the 'flush_on_clear' flags was clleared set from between
+      * Did any of the 'flush_on_clear' flags was cleared set from between

It should be more like:

* Were any of the 'flush_on_clear' flags changed between

Quoted 8 lines
Quoted 1 line

X86 people, does that make sense to you?

It’s not a test whether the flags are changed, but whether they are cleared.

Let’s see if we can make it clearer with shorter sentences. How about:
“Consider the ‘flush_on_clear’ flags that are set on ‘oldflags’; Flush if any of these flags is cleared on ’newflags’”.

Sounds good. Thanks for your help.

Signature · 1 line
~Randy