* [PATCH 1/2] btrfs: fix typos in comments
[not found] <20260904115202.7113-1-hemanth.selam@gmail.com>
@ 2026-09-04 11:51 ` Hemanth Selam
2026-09-04 16:38 ` David Sterba
2026-09-04 11:52 ` [PATCH 2/2] btrfs: fix repeated words " Hemanth Selam
1 sibling, 1 reply; 3+ messages in thread
From: Hemanth Selam @ 2026-09-04 11:51 UTC (permalink / raw)
To: Chris Mason, David Sterba; +Cc: linux-kernel, linux-btrfs
Fix typos in comments, reported by scripts/checkpatch.pl using the
misspelling list in scripts/spelling.txt. Only touches comments, no code
changes.
Assisted-by: Cursor:claude-opus-5
Signed-off-by: Hemanth Selam <hemanth.selam@gmail.com>
---
fs/btrfs/block-group.h | 2 +-
fs/btrfs/send.c | 2 +-
include/uapi/linux/btrfs_tree.h | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/fs/btrfs/block-group.h b/fs/btrfs/block-group.h
index 69d56864d4ba..b349f94cf929 100644
--- a/fs/btrfs/block-group.h
+++ b/fs/btrfs/block-group.h
@@ -135,7 +135,7 @@ struct btrfs_block_group {
u64 global_root_id;
u64 remap_bytes;
u32 identity_remap_count;
- /* The last commited identity_remap_count value of this block group. */
+ /* The last committed identity_remap_count value of this block group. */
u32 last_identity_remap_count;
/*
* The last committed used bytes of this block group, if the above @used
diff --git a/fs/btrfs/send.c b/fs/btrfs/send.c
index dca3570168c7..dd90da2859b8 100644
--- a/fs/btrfs/send.c
+++ b/fs/btrfs/send.c
@@ -7016,7 +7016,7 @@ static int changed_extent(struct send_ctx *sctx,
* get modified or replaced with a new one). Note that deduplication
* updates the inode item, but it only changes the iversion (sequence
* field in the inode item) of the inode, so if a file is deduplicated
- * the same amount of times in both the parent and send snapshots, its
+ * the same number of times in both the parent and send snapshots, its
* iversion becomes the same in both snapshots, whence the inode item is
* the same on both snapshots.
*/
diff --git a/include/uapi/linux/btrfs_tree.h b/include/uapi/linux/btrfs_tree.h
index cc3b9f7dccaf..127aabd88639 100644
--- a/include/uapi/linux/btrfs_tree.h
+++ b/include/uapi/linux/btrfs_tree.h
@@ -243,7 +243,7 @@
#define BTRFS_EXTENT_DATA_REF_KEY 178
/*
- * Obsolete key. Defintion removed in 6.6, value may be reused in the future.
+ * Obsolete key. Definition removed in 6.6, value may be reused in the future.
*
* #define BTRFS_EXTENT_REF_V0_KEY 180
*/
--
2.48.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH 2/2] btrfs: fix repeated words in comments
[not found] <20260904115202.7113-1-hemanth.selam@gmail.com>
2026-09-04 11:51 ` [PATCH 1/2] btrfs: fix typos in comments Hemanth Selam
@ 2026-09-04 11:52 ` Hemanth Selam
1 sibling, 0 replies; 3+ messages in thread
From: Hemanth Selam @ 2026-09-04 11:52 UTC (permalink / raw)
To: Chris Mason, David Sterba; +Cc: linux-kernel, linux-btrfs
Drop words accidentally written twice, reported by checkpatch.pl as a
possible repeated word. Only touches comments, no code changes.
Assisted-by: Cursor:claude-opus-5
Signed-off-by: Hemanth Selam <hemanth.selam@gmail.com>
---
fs/btrfs/raid56.c | 4 ++--
include/uapi/linux/btrfs_tree.h | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/fs/btrfs/raid56.c b/fs/btrfs/raid56.c
index 1ee52a9dcee3..577412b7886f 100644
--- a/fs/btrfs/raid56.c
+++ b/fs/btrfs/raid56.c
@@ -953,7 +953,7 @@ 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 before unlock_stripe() so there will be no new bio
+ * do this before unlock_stripe() so there will be no new bio
* for this bio.
*/
bitmap_clear(&rbio->dbitmap, 0, rbio->stripe_nsectors);
@@ -1451,7 +1451,7 @@ static int rmw_assemble_write_bios(struct btrfs_raid_bio *rbio,
ASSERT(bitmap_weight(&rbio->dbitmap, rbio->stripe_nsectors));
/*
- * Reset errors, as we may have errors inherited from from degraded
+ * Reset errors, as we may have errors inherited from degraded
* write.
*/
bitmap_clear(rbio->error_bitmap, 0, rbio->nr_sectors);
diff --git a/include/uapi/linux/btrfs_tree.h b/include/uapi/linux/btrfs_tree.h
index 127aabd88639..81883beb3b7d 100644
--- a/include/uapi/linux/btrfs_tree.h
+++ b/include/uapi/linux/btrfs_tree.h
@@ -230,7 +230,7 @@
*
* Stored as an inline ref rather to avoid wasting space on a separate item on
* top of the existing extent item. However, unlike the other inline refs,
- * there is one one owner ref per extent rather than one per extent.
+ * there is one owner ref per extent rather than one per extent.
*
* Because of this, it goes at the front of the list of inline refs, and thus
* must have a lower type value than any other inline ref type (to satisfy the
--
2.48.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH 1/2] btrfs: fix typos in comments
2026-09-04 11:51 ` [PATCH 1/2] btrfs: fix typos in comments Hemanth Selam
@ 2026-09-04 16:38 ` David Sterba
0 siblings, 0 replies; 3+ messages in thread
From: David Sterba @ 2026-09-04 16:38 UTC (permalink / raw)
To: Hemanth Selam; +Cc: Chris Mason, David Sterba, linux-kernel, linux-btrfs
On Fri, Sep 04, 2026 at 05:21:59PM +0530, Hemanth Selam wrote:
> Fix typos in comments, reported by scripts/checkpatch.pl using the
> misspelling list in scripts/spelling.txt. Only touches comments, no code
> changes.
>
> Assisted-by: Cursor:claude-opus-5
> Signed-off-by: Hemanth Selam <hemanth.selam@gmail.com>
Thanks, despite all efforts the typos always make it back. Please merge
the two patches together as they're fixing only comments.
I'm not sure which branch you've used, the most recent is
https://github.com/btrfs/linux for-next
I did a quick check using codespell and it found a few more typos,
please include them in v2 too.
block-group.h:138: commited ==> committed
extent-io-tree.c:754: Temporarilly ==> Temporarily
fs.c:82: Checksume ==> Checksum
raid56.c:991: coresponding ==> corresponding
raid56.c:2635: caclulated ==> calculated
transaction.h:291: wheather ==> weather, whether
tree-checker.c:231: cannnot ==> cannot
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-09-04 16:38 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20260904115202.7113-1-hemanth.selam@gmail.com>
2026-09-04 11:51 ` [PATCH 1/2] btrfs: fix typos in comments Hemanth Selam
2026-09-04 16:38 ` David Sterba
2026-09-04 11:52 ` [PATCH 2/2] btrfs: fix repeated words " Hemanth Selam
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox