block: fix typos and repeated words in comments
Subsystems (2)
cover block: 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):
block: drbd: fix typos in comments
block: fix repeated word 'is' in comment
drivers/block/drbd/drbd_nl.c | 2 +- drivers/block/drbd/drbd_req.c | 4 ++-- drivers/block/drbd/drbd_state.c | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-)
Signature · 1 line
2.48.1
PATCH 1/2 block: drbd: 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/block/drbd/drbd_nl.c | 2 +- drivers/block/drbd/drbd_req.c | 4 ++-- drivers/block/drbd/drbd_state.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-)
drivers/block/drbd/drbd_nl.c +1 -1
@@ -605,7 +605,7 @@ bool conn_try_outdate_peer(struct drbd_connection *connection)spin_lock_irq (&resource->req_lock);if (connection->cstate <C_WF_REPORT_PARAMS && !test_bit (STATE_SENT , &connection->flags)) {if (connection->connect_cnt != connect_cnt) -/* In case the connection was established and droped +/* In case the connection was established and dropped while the fence-peer handler was running, ignore it */ drbd_info (connection,"Ignoring fence-peer exit code\n" );else
drivers/block/drbd/drbd_req.c +2 -2
@@ -1576,7 +1576,7 @@ void do_submit(struct work_struct *ws)* Be strictly non-blocking here, * we already have something to commit. * -* Commit if we don't make any more progres. +* Commit if we don't make any more progress. */ while (list_empty (&incoming)) {
@@ -1747,7 +1747,7 @@ void request_timer_fn(struct timer_list *t)* but which is still waiting for an ACK. */ req_peer = connection->req_ack_pending; -/* if we don't have such request (e.g. protocoll A) +/* if we don't have such request (e.g. protocol A) * check the oldest requests which is still waiting on its epoch * closing barrier ack. */ if (!req_peer)
drivers/block/drbd/drbd_state.c +1 -1
@@ -1339,7 +1339,7 @@ _drbd_set_state(struct drbd_device *device, union drbd_state ns,remember_new_state (state_change); -/* put replicated vs not-replicated requests in seperate epochs */ +/* put replicated vs not-replicated requests in separate epochs */ if (drbd_should_do_remote ((union drbd_dev_state )os.i) !=drbd_should_do_remote ((union drbd_dev_state )ns.i))start_new_tl_epoch (connection);
Signature · 1 line
2.48.1
Christoph Böhmwalder
maintainerRe: [PATCH 1/2] block: drbd: fix typos in comments
Quoted 11 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/block/drbd/drbd_nl.c | 2 +- drivers/block/drbd/drbd_req.c | 4 ++-- drivers/block/drbd/drbd_state.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-)
Typo fixes like this are usually only worth it if they come with "real" fixes in the same general area. Otherwise, they just cause unneccessary churn for the involved maintainers.
Regards,
Christoph
PATCH 2/2 block: fix repeated word 'is' in comment
In reply to Hemanth SelamDrop the second 'is', reported by checkpatch.pl as a possible repeated word. Only touches a comment, no code changes.
--- drivers/block/drbd/drbd_state.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/block/drbd/drbd_state.c +1 -1
@@ -1905,7 +1905,7 @@ static void after_state_ch(struct drbd_device *device, union drbd_state os,int was_io_error =0 ;/* corresponding get_ldev was in _drbd_set_state, to serialize * our cleanup here with the transition to D_DISKLESS. -* But is is still not save to dreference ldev here, since +* But is still not save to dreference ldev here, since * we might come from an failed Attach before ldev was set. */ if (device->ldev) {rcu_read_lock ();
Signature · 1 line
2.48.1