Skip to contentSkip to conversation

btrfs: Correct some typos in comments

PATCH In review Shen Lichuan 2 participants 2 messages Sep 23, 2024 Btrfs file system

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 btrfs: Correct some typos in comments

Fixed some confusing spelling errors, the details are as follows:

-in the code comments:

	filesysmte	-> filesystem
	trasnsaction	-> transaction
---
 fs/btrfs/volumes.c | 2 +-
 fs/btrfs/zoned.c   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
fs/btrfs/volumes.c +1 -1
index 995b0647f538..555a817bf065 100644
@@ -5309,7 +5309,7 @@ static int decide_stripe_size_zoned(struct alloc_chunk_ctl *ctl,
 	ctl->num_stripes = ctl->ndevs * ctl->dev_stripes;
 	data_stripes = (ctl->num_stripes - ctl->nparity) / ctl->ncopies;
 
-	/* stripe_size is fixed in zoned filesysmte. Reduce ndevs instead. */
+	/* stripe_size is fixed in zoned filesystem. Reduce ndevs instead. */
 	if (ctl->stripe_size * data_stripes > ctl->max_chunk_size) {
 		ctl->ndevs = div_u64(div_u64(ctl->max_chunk_size * ctl->ncopies,
 					     ctl->stripe_size) + ctl->nparity,
fs/btrfs/zoned.c +1 -1
index 7fa2920632ba..00a016691d8e 100644
@@ -1973,7 +1973,7 @@ int btrfs_check_meta_write_pointer(struct btrfs_fs_info *fs_info,
 	if (block_group->meta_write_pointer > eb->start)
 		return -EBUSY;
 
-	/* If for_sync, this hole will be filled with trasnsaction commit. */
+	/* If for_sync, this hole will be filled with transaction commit. */
 	if (wbc->sync_mode == WB_SYNC_ALL && !wbc->for_sync)
 		return -EAGAIN;
 	return -EBUSY;
Signature · 1 line
2.17.1
#1 lore raw
Quoted 5 lines · Shen Lichuan

Fixed some confusing spelling errors, the details are as follows:

-in the code comments:

	filesysmte	-> filesystem
	trasnsaction	-> transaction

Strange that codespell does not find the typos. We also want to fix typos in bigger batches so please check for more, my quick search gives

block-group.c:2800: uncompressible ==> incompressible extent_io.c:3188: utlizing ==> utilizing extent_map.c:1323: ealier ==> earlier extent_map.c:1325: possiblity ==> possibility fiemap.c:189: emmitted ==> emitted fiemap.c:197: emmitted ==> emitted fiemap.c:203: emmitted ==> emitted transaction.h:36: trasaction ==> transaction