]> git.hungrycats.org Git - linux/commitdiff
btrfs: fix typos and repeated words in comments
authorHemanth Selam <hemanth.selam@gmail.com>
Mon, 7 Sep 2026 04:48:01 +0000 (10:18 +0530)
committerDavid Sterba <dsterba@suse.com>
Mon, 14 Sep 2026 11:23:37 +0000 (13:23 +0200)
Fix misspellings and repeated words in comments, found with
scripts/checkpatch.pl and codespell.  Only touches comments, no code
changes.

Assisted-by: Cursor:claude-opus-5
Signed-off-by: Hemanth Selam <hemanth.selam@gmail.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/block-group.h
fs/btrfs/extent-io-tree.c
fs/btrfs/fs.c
fs/btrfs/raid56.c
fs/btrfs/send.c
fs/btrfs/transaction.h
fs/btrfs/tree-checker.c
include/uapi/linux/btrfs_tree.h

index 69d56864d4baa09abb01d63abd5e56091180b500..b349f94cf929ab673f16f93f54096c9bf888458f 100644 (file)
@@ -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
index d6df11f6088c44a796c742115ede7fc62a1a7afc..992b8b42bdb4e335f345564b6c1badcc89c82d1a 100644 (file)
@@ -751,7 +751,7 @@ hit_next:
                                btrfs_split_delalloc_extent(tree->inode, state, start);
 
                        /*
-                        * Temporarilly ajdust this state's range to match the
+                        * Temporarily ajdust this state's range to match the
                         * range for which we are clearing bits.
                         */
                        state->start = start;
index de160d29dde82f7ecfe5f78e9ba763eaa41ed114..75a1217727a7bb84f7a82da58d2316358b95665a 100644 (file)
@@ -79,7 +79,7 @@ void btrfs_csum_init(struct btrfs_csum_ctx *ctx, u16 csum_type)
                blake2b_init(&ctx->blake2b, 32);
                break;
        default:
-               /* Checksume type is validated at mount time. */
+               /* Checksum type is validated at mount time. */
                BUG();
        }
 }
index a5d0ef09d92abbaf32632ab0709fd3da1fff3d7b..8ec24dbb180f9266b04625c9f11dd9b649d7a3f4 100644 (file)
@@ -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);
@@ -988,7 +988,7 @@ static void rbio_orig_end_io(struct btrfs_raid_bio *rbio, blk_status_t status)
  * as possible, and only use stripe_sectors as fallback.
  *
  * Return NULL if bio_list_only is set but the specified sector has no
- * coresponding bio.
+ * corresponding bio.
  */
 static phys_addr_t *sector_paddrs_in_rbio(struct btrfs_raid_bio *rbio,
                                          int stripe_nr, int sector_nr,
@@ -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 from degraded
-        * write.
-        */
+       /* Reset errors, as we may have errors inherited from degraded write. */
        bitmap_clear(rbio->error_bitmap, 0, rbio->nr_sectors);
 
        /*
@@ -2632,7 +2629,7 @@ static int alloc_rbio_essential_pages(struct btrfs_raid_bio *rbio)
        return 0;
 }
 
-/* Return true if the content of the step matches the caclulated one. */
+/* Return true if the content of the step matches the calculated one. */
 static bool verify_one_parity_step(struct btrfs_raid_bio *rbio,
                                   void *pointers[], unsigned int sector_nr,
                                   unsigned int step_nr)
index 5c59b9abedcd71115672badf9a2cdca25eb7dda5..c523bf950c898f63b177130f3dabc43fb0c4dc6a 100644 (file)
@@ -7023,7 +7023,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.
         */
index 3a57f227b5ed2897492a049f918e0d196e0e7e0a..89153cd2259678090ee02250019a70808f8ee6f7 100644 (file)
@@ -288,7 +288,7 @@ do {                                                                                \
  * Call btrfs_abort_transaction() as early as possible when an error condition
  * is detected, that way the exact stack trace is reported for some errors.
  *
- * Error number must be negative as it encodes wheather it's the first abort.
+ * Error number must be negative as it encodes whether it's the first abort.
  */
 #define btrfs_abort_transaction(trans, error)          \
 do {                                                           \
index 401fd40ec7b22e541eff7f11212df193bf270d83..b8ca9980e1ddd225c90389278842d5e1ef72e9c0 100644 (file)
@@ -228,7 +228,7 @@ static bool can_have_extent_data(struct extent_buffer *leaf,
        }
 
        /*
-        * The rest are special files, e.g. block/FIFO files, which cannnot
+        * The rest are special files, e.g. block/FIFO files, which cannot
         * have any file extent.
         */
        return false;
index b6ccaf848e4b3ebd6ff33bc894479f887a5e814d..47ee52859b4589567683785edbfcaec8b24b7af1 100644 (file)
  *
  * 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
 #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
  */