]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
btrfs: fix typos found by codespell
authorDavid Sterba <dsterba@suse.com>
Tue, 5 Dec 2023 18:26:39 +0000 (19:26 +0100)
committerDavid Sterba <dsterba@suse.com>
Fri, 15 Dec 2023 22:00:04 +0000 (23:00 +0100)
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/bio.c
fs/btrfs/block-group.c
fs/btrfs/extent_io.c
fs/btrfs/lru_cache.c
fs/btrfs/qgroup.c
fs/btrfs/scrub.c
fs/btrfs/tree-checker.h
fs/btrfs/volumes.h
fs/btrfs/zoned.h

index 4f3b693a16b137e3ed40cc1ca0e7dbe4112cc66b..67a885d3f9a875d3da05a5019f42c7a934ba314f 100644 (file)
@@ -626,7 +626,7 @@ static bool should_async_write(struct btrfs_bio *bbio)
 /*
  * Submit bio to an async queue.
  *
- * Return true if the work has been succesfuly submitted, else false.
+ * Return true if the work has been successfully submitted, else false.
  */
 static bool btrfs_wq_submit_bio(struct btrfs_bio *bbio,
                                struct btrfs_io_context *bioc,
index 4365f7b6b94d19b778696035cc35a24a9d6d9097..a9be9ac9922225bb32801aec5834c9e9d87ffc97 100644 (file)
@@ -2882,7 +2882,7 @@ int btrfs_inc_block_group_ro(struct btrfs_block_group *cache,
                goto unlock_out;
 
        /*
-        * Skip chunk alloction if the bg is SYSTEM, this is to avoid system
+        * Skip chunk allocation if the bg is SYSTEM, this is to avoid system
         * chunk allocation storm to exhaust the system chunk array.  Otherwise
         * we still want to try our best to mark the block group read-only.
         */
index bf13aebe238488407a6c3748c89f015bdafe0dbd..921e9e17fc65a41967be06175afc455eb5d91e17 100644 (file)
@@ -4041,7 +4041,7 @@ void read_extent_buffer(const struct extent_buffer *eb, void *dstv,
        if (check_eb_range(eb, start, len)) {
                /*
                 * Invalid range hit, reset the memory, so callers won't get
-                * some random garbage for their uninitialzed memory.
+                * some random garbage for their uninitialized memory.
                 */
                memset(dstv, 0, len);
                return;
index 0fe0ae54ac675e695ff123397b3d3f040e0b3edc..fd88af17d8d9db88ee787a80f6239315599aff65 100644 (file)
@@ -9,7 +9,7 @@
  *
  * @cache:      The cache.
  * @max_size:   Maximum size (number of entries) for the cache.
- *              Use 0 for unlimited size, it's the user's responsability to
+ *              Use 0 for unlimited size, it's the user's responsibility to
  *              trim the cache in that case.
  */
 void btrfs_lru_cache_init(struct btrfs_lru_cache *cache, unsigned int max_size)
index e46774e8f49fd6609afa61914adb82dd53dac83d..63b426cc77989670e0f7890a1cb75a17348e96cb 100644 (file)
@@ -194,7 +194,7 @@ static struct btrfs_qgroup *find_qgroup_rb(struct btrfs_fs_info *fs_info,
  *
  * Must be called with qgroup_lock held and @prealloc preallocated.
  *
- * The control on the lifespan of @prealloc would be transfered to this
+ * The control on the lifespan of @prealloc would be transferred to this
  * function, thus caller should no longer touch @prealloc.
  */
 static struct btrfs_qgroup *add_qgroup_rb(struct btrfs_fs_info *fs_info,
index 061d541485682534d85043a94ed7d6bade1892f9..c0269e126f431f34fa0bce7d5beaff5e4d24ceef 100644 (file)
@@ -43,7 +43,7 @@ struct scrub_ctx;
 /*
  * The following value only influences the performance.
  *
- * This detemines how many stripes would be submitted in one go,
+ * This determines how many stripes would be submitted in one go,
  * which is 512KiB (BTRFS_STRIPE_LEN * SCRUB_STRIPES_PER_GROUP).
  */
 #define SCRUB_STRIPES_PER_GROUP                8
@@ -709,7 +709,7 @@ static void scrub_verify_one_sector(struct scrub_stripe *stripe, int sector_nr)
        /* Metadata, verify the full tree block. */
        if (sector->is_metadata) {
                /*
-                * Check if the tree block crosses the stripe boudary.  If
+                * Check if the tree block crosses the stripe boundary.  If
                 * crossed the boundary, we cannot verify it but only give a
                 * warning.
                 *
@@ -883,7 +883,7 @@ static void scrub_stripe_report_errors(struct scrub_ctx *sctx,
        /*
         * Init needed infos for error reporting.
         *
-        * Although our scrub_stripe infrastucture is mostly based on btrfs_submit_bio()
+        * Although our scrub_stripe infrastructure is mostly based on btrfs_submit_bio()
         * thus no need for dev/physical, error reporting still needs dev and physical.
         */
        if (!bitmap_empty(&stripe->init_error_bitmap, stripe->nr_sectors)) {
@@ -1812,7 +1812,7 @@ static int flush_scrub_stripes(struct scrub_ctx *sctx)
        if (sctx->is_dev_replace) {
                /*
                 * For dev-replace, if we know there is something wrong with
-                * metadata, we should immedately abort.
+                * metadata, we should immediately abort.
                 */
                for (int i = 0; i < nr_stripes; i++) {
                        if (stripe_has_metadata_error(&sctx->stripes[i])) {
index 3c2a02a72f6498d0589ed5650c6d226b9e45f12e..14b9fbe82da474d1c3abbf254413a9ca67be99e4 100644 (file)
@@ -22,7 +22,7 @@ struct btrfs_tree_parent_check {
 
        /*
         * Expected transid, can be 0 to skip the check, but such skip
-        * should only be utlized for backref walk related code.
+        * should only be utilized for backref walk related code.
         */
        u64 transid;
 
index 6c6faed2468a7ea314d589ffe190c9f93f3e04b8..53f87f398da779aba835c5d3cb65a090ac5a5698 100644 (file)
@@ -613,7 +613,7 @@ static inline unsigned long btrfs_chunk_item_size(int num_stripes)
 }
 
 /*
- * Do the type safe converstion from stripe_nr to offset inside the chunk.
+ * Do the type safe conversion from stripe_nr to offset inside the chunk.
  *
  * @stripe_nr is u32, with left shift it can overflow u32 for chunks larger
  * than 4G.  This does the proper type cast to avoid overflow.
index 74e660eec20ebc75004387ff77a9f75d9c7d4192..f24a5ffb7807b002555d0c217f6bd8b673d8ecc9 100644 (file)
@@ -319,7 +319,7 @@ static inline bool btrfs_check_device_zone_type(const struct btrfs_fs_info *fs_i
                        (bdev_zone_sectors(bdev) << SECTOR_SHIFT);
        }
 
-       /* Do not allow Host Manged zoned device */
+       /* Do not allow Host Managed zoned device. */
        return bdev_zoned_model(bdev) != BLK_ZONED_HM;
 }