Skip to contentSkip to conversation

btrfs: reflow comments left awkward by the typo fixes

PATCH In review Hemanth Selam 2 participants 3 messages Sep 7 Btrfs file system

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 btrfs: reflow comments left awkward by the typo fixes

Removing the repeated words in rbio_orig_end_io() and rmw_assemble_write_bios() left two comments reading oddly: one now starts its second sentence in lower case and wraps early, and the other fits on a single line. Reflow both, as Daniel Vacek pointed out.

Comments only, no functional changes.

Assisted-by Cursor:claude-opus-5
---
 fs/btrfs/raid56.c | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)
fs/btrfs/raid56.c +3 -6
index 4f702dbf581b..47d6a313cbdf 100644
@@ -953,8 +953,8 @@ static void rbio_orig_end_io(struct btrfs_raid_bio *rbio, blk_status_t status)
 
 	/*
 	 * Clear the data bitmap, as the rbio may be cached for later usage.
-	 * do this before unlock_stripe() so there will be no new bio
-	 * for this bio.
+	 * Do this before unlock_stripe() so there will be no new bio for this
+	 * bio.
 	 */
 	bitmap_clear(&rbio->dbitmap, 0, rbio->stripe_nsectors);
 
@@ -1450,10 +1450,7 @@ static int rmw_assemble_write_bios(struct btrfs_raid_bio *rbio,
 	/* We should have at least one data sector. */
 	ASSERT(bitmap_weight(&rbio->dbitmap, rbio->stripe_nsectors));
 
-	/*
-	 * Reset errors, as we may have errors inherited from degraded
-	 * write.
-	 */
+	/* Reset errors, as we may have errors inherited from degraded write. */
 	bitmap_clear(rbio->error_bitmap, 0, rbio->nr_sectors);
 
 	/*
Signature · 1 line
2.48.1
#1 lore raw

Please drop this patch.

You had already answered the question it tries to address:

"Reformatting whole lines makes the typos harder to spot, so it's fine
to leave it like that and reformat at commit time eventually."

I sent it after reading Daniel's comments but before reading your reply to them, so I reflowed the two comments you had just said not to reflow. Entirely my fault, and easily avoided if I had read the whole thread first. Sorry for the noise.

The typo fixes already in for-next are unaffected.

#2 lore raw
In reply to Hemanth Selam
Quoted 9 lines · Hemanth Selam

Removing the repeated words in rbio_orig_end_io() and rmw_assemble_write_bios() left two comments reading oddly: one now starts its second sentence in lower case and wraps early, and the other fits on a single line. Reflow both, as Daniel Vacek pointed out.

Comments only, no functional changes.

Assisted-by Cursor:claude-opus-5

No need to send such patches if thery're an immediate followup, the change can be done at commit time. This saves time on both sides.