md: fix typos and repeated words in comments
cover md: fix typos and repeated words in comments
This corrects 2 misspellings and repeated words in comments. Each is a separate patch so that any one of them can be dropped without touching the rest.
Nothing outside comments changes. Every touched C file was checked by dropping its comments, replacing each string literal with a placeholder and collapsing whitespace; what remained was identical before and after, so the compiled code cannot differ.
The mistakes were found with scripts/checkpatch.pl against the list in scripts/spelling.txt. The scanning, the edits and the changelogs were produced with Cursor running the claude-opus-5 model, from a request to find and fix spelling mistakes across the tree, and every correction was then re-checked by the comparison described above. Words that name an identifier were left alone deliberately, even when they read as typos, because correcting the prose would make the comment disagree with the code it describes.
Tested by building x86_64 defconfig at v7.3-rc1-269-gbc35965f6940, which is clean. Nothing else was built, so any patch touching code that x86_64 defconfig does not compile has been read but not compiled.
Hemanth Selam (2):
md: fix typos in comments
lib: fix repeated word 'the' in comment
drivers/md/raid1-10.c | 2 +- drivers/md/raid10.c | 2 +- lib/raid/raid6/algos.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)
Signature · 1 line
2.48.1
PATCH 1/2 md: fix typos in comments
Fix typos in comments, reported by scripts/checkpatch.pl using the misspelling list in scripts/spelling.txt. Only touches comments, no code changes.
--- drivers/md/raid1-10.c | 2 +- drivers/md/raid10.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/md/raid1-10.c +1 -1
@@ -87,7 +87,7 @@ static inline struct resync_pages *get_resync_pages(struct bio *bio)return bio->bi_private; } -/* generally called after bio_reset() for reseting bvec */ +/* generally called after bio_reset() for resetting bvec */ static void md_bio_reset_resync_pages (struct bio *bio,struct resync_pages *rp,int size) {
drivers/md/raid10.c +1 -1
@@ -1921,7 +1921,7 @@ static void raid10_status(struct seq_file *seq, struct mddev *mddev) }/* check if there are enough drives for -* every block to appear on atleast one. +* every block to appear on at least one. * Don't consider the device numbered 'ignore' * as we might be about to remove it. */
Signature · 1 line
2.48.1
yu kuai
maintainerRe: [PATCH 1/2] md: fix typos in comments
Hi,
Quoted 10 lines · Hemanth Selam
Fix typos in comments, reported by
scripts/checkpatch.plusing the misspelling list inscripts/spelling.txt. Only touches comments, no code changes.Assisted-by Cursor:claude-opus-5Signed-off-by Hemanth Selam <[email protected]>--- drivers/md/raid1-10.c | 2 +- drivers/md/raid10.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
I'll not accept typo fixed like this, because it will introduce conflicts for stable backport. However, it's still welcome to fix typos together with other cleanup or bugfix.
Quoted 27 lines
drivers/md/raid1-10.c +1
-1@@ -87,7 +87,7 @@ static inline struct resync_pages *get_resync_pages(struct bio *bio)return bio->bi_private; } -/* generally called after bio_reset() for reseting bvec */ +/* generally called after bio_reset() for resetting bvec */ static void md_bio_reset_resync_pages (struct bio *bio,struct resync_pages *rp,int size) {drivers/md/raid10.c +1
-1@@ -1921,7 +1921,7 @@ static void raid10_status(struct seq_file *seq, struct mddev *mddev) }/* check if there are enough drives for -* every block to appear on atleast one. +* every block to appear on at least one. * Don't consider the device numbered 'ignore' * as we might be about to remove it. */
Signature · 2 lines
Thanks, Kuai
PATCH 2/2 lib: fix repeated word 'the' in comment
In reply to Hemanth SelamDrop the second 'the', reported by checkpatch.pl as a possible repeated word. Only touches a comment, no code changes.
--- lib/raid/raid6/algos.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
lib/raid/raid6/algos.c +1 -1
@@ -66,7 +66,7 @@ EXPORT_SYMBOL_GPL(raid6_gen_syndrome);* This is used to update parity in place using the following sequence: * * 1) call raid6_xor_syndrome(disk, start, stop, ...) for the existing data. -* 2) update the the data in @ptrs[@start..@stop]. +* 2) update the data in @ptrs[@start..@stop]. * 3) call raid6_xor_syndrome(disk, start, stop, ...) for the new data. * * Data between @start and @stop that is not changed should be filled
Signature · 1 line
2.48.1