btrfs: fix spelling mistakes found using codespell
authorColin Ian King <colin.i.king@gmail.com>
Tue, 17 Jan 2023 10:03:21 +0000 (10:03 +0000)
committerDavid Sterba <dsterba@suse.com>
Wed, 15 Feb 2023 18:38:50 +0000 (19:38 +0100)
There quite a few spelling mistakes as found using codespell. Fix them.

Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/bio.c
fs/btrfs/compression.c
fs/btrfs/disk-io.c
fs/btrfs/extent-io-tree.c
fs/btrfs/raid56.c
fs/btrfs/raid56.h
fs/btrfs/scrub.c
fs/btrfs/super.c
fs/btrfs/volumes.c

index 8affc88b0e0a4b68ed61e08fd1552331fd9c8517..c3bf36fef3aa3bf8ea01d65a1005fe80d40e08a8 100644 (file)
@@ -283,7 +283,7 @@ void btrfs_submit_bio(struct btrfs_fs_info *fs_info, struct bio *bio, int mirror
  * RAID setup.  Here we only want to write the one bad copy, so we do the
  * mapping ourselves and submit the bio directly.
  *
- * The I/O is issued sychronously to block the repair read completion from
+ * The I/O is issued synchronously to block the repair read completion from
  * freeing the bio.
  */
 int btrfs_repair_io_failure(struct btrfs_fs_info *fs_info, u64 ino, u64 start,
index 4a5aeb8dd4793ad96b744ab449791bd87bd46603..d912638abce2d5159d1fdcf3a4c0e164e4608520 100644 (file)
@@ -796,7 +796,7 @@ void btrfs_submit_compressed_read(struct inode *inode, struct bio *bio,
                         * Save the initial offset of this chunk, as there
                         * is no direct correlation between compressed pages and
                         * the original file offset.  The field is only used for
-                        * priting error messages.
+                        * printing error messages.
                         */
                        btrfs_bio(comp_bio)->file_offset = file_offset;
 
@@ -1642,7 +1642,7 @@ static void heuristic_collect_sample(struct inode *inode, u64 start, u64 end,
  *
  * For now is's a naive and optimistic 'return true', we'll extend the logic to
  * quickly (compared to direct compression) detect data characteristics
- * (compressible/uncompressible) to avoid wasting CPU time on uncompressible
+ * (compressible/incompressible) to avoid wasting CPU time on incompressible
  * data.
  *
  * The following types of analysis can be performed:
index a6f89ac1c0865c91ee146c403ac85d2a43e21dee..dc5bf46529f09731c1fc8a5b106a052c432f2144 100644 (file)
@@ -767,8 +767,8 @@ static void run_one_async_free(struct btrfs_work *work)
 /*
  * Submit bio to an async queue.
  *
- * Retrun:
- * - true if the work has been succesfuly submitted
+ * Return:
+ * - true if the work has been successfully submitted
  * - false in case of error
  */
 bool btrfs_wq_submit_bio(struct btrfs_inode *inode, struct bio *bio, int mirror_num,
index b2bab76723404b577548f72f47c7cbf16885702a..29a225836e286e10768dbeaf46305d5d2b88dbee 100644 (file)
@@ -1625,7 +1625,7 @@ search:
 }
 
 /*
- * Searche a range in the state tree for a given mask.  If 'filled' == 1, this
+ * Search a range in the state tree for a given mask.  If 'filled' == 1, this
  * returns 1 only if every extent in the tree has the bits set.  Otherwise, 1
  * is returned if any bit in the range is found set.
  */
index ff4b1d583788c81b224cc3eb108d8d3c94a5d4ad..ff44ec8327fd3f8dc36594a41d1fd503dfd5862a 100644 (file)
@@ -998,7 +998,7 @@ static int alloc_rbio_parity_pages(struct btrfs_raid_bio *rbio)
 }
 
 /*
- * Return the total numer of errors found in the vertical stripe of @sector_nr.
+ * Return the total number of errors found in the vertical stripe of @sector_nr.
  *
  * @faila and @failb will also be updated to the first and second stripe
  * number of the errors.
@@ -1183,7 +1183,7 @@ not_found:
        trace_info->stripe_nr = -1;
 }
 
-/* Generate PQ for one veritical stripe. */
+/* Generate PQ for one vertical stripe. */
 static void generate_pq_vertical(struct btrfs_raid_bio *rbio, int sectornr)
 {
        void **pointers = rbio->finish_pointers;
@@ -1357,7 +1357,7 @@ static void set_rbio_range_error(struct btrfs_raid_bio *rbio, struct bio *bio)
 }
 
 /*
- * For subpage case, we can no longer set page Uptodate directly for
+ * For subpage case, we can no longer set page Up-to-date directly for
  * stripe_pages[], thus we need to locate the sector.
  */
 static struct sector_ptr *find_stripe_sector(struct btrfs_raid_bio *rbio,
@@ -1529,7 +1529,7 @@ static int rmw_assemble_read_bios(struct btrfs_raid_bio *rbio,
        /*
         * Build a list of bios to read all sectors (including data and P/Q).
         *
-        * This behaviro is to compensate the later csum verification and
+        * This behavior is to compensate the later csum verification and
         * recovery.
         */
        for (total_sector_nr = 0; total_sector_nr < rbio->nr_sectors;
@@ -1773,7 +1773,7 @@ static int recover_vertical(struct btrfs_raid_bio *rbio, int sector_nr,
        found_errors = get_rbio_veritical_errors(rbio, sector_nr, &faila,
                                                 &failb);
        /*
-        * No errors in the veritical stripe, skip it.  Can happen for recovery
+        * No errors in the vertical stripe, skip it.  Can happen for recovery
         * which only part of a stripe failed csum check.
         */
        if (!found_errors)
index 7c73a443939e6c6ed1dd626dab879e1c1917c2e6..df0e0abdeb1f0a0489c460acef38f70e2789bf5e 100644 (file)
@@ -65,7 +65,7 @@ struct btrfs_raid_bio {
        /* Number of data stripes (no p/q) */
        u8 nr_data;
 
-       /* Numer of all stripes (including P/Q) */
+       /* Number of all stripes (including P/Q) */
        u8 real_stripes;
 
        /* How many pages there are for each stripe */
@@ -132,7 +132,7 @@ struct btrfs_raid_bio {
 
        /*
         * Checksum buffer if the rbio is for data.  The buffer should cover
-        * all data sectors (exlcuding P/Q sectors).
+        * all data sectors (excluding P/Q sectors).
         */
        u8 *csum_buf;
 
index a5d026041be4592eb3ec7a06a70958419a9e03bb..69c93ae333f63f62296de7af8d2d1b327d8c0971 100644 (file)
@@ -229,7 +229,7 @@ struct full_stripe_lock {
 };
 
 #ifndef CONFIG_64BIT
-/* This structure is for archtectures whose (void *) is smaller than u64 */
+/* This structure is for architectures whose (void *) is smaller than u64 */
 struct scrub_page_private {
        u64 logical;
 };
index e5136baef9af17b69a375d318a391bc44c00d776..581845bc206ad28b403d52f7b8dc421982078222 100644 (file)
@@ -2050,7 +2050,7 @@ static int btrfs_statfs(struct dentry *dentry, struct kstatfs *buf)
                }
 
                /*
-                * Metadata in mixed block goup profiles are accounted in data
+                * Metadata in mixed block group profiles are accounted in data
                 */
                if (!mixed && found->flags & BTRFS_BLOCK_GROUP_METADATA) {
                        if (found->flags & BTRFS_BLOCK_GROUP_DATA)
index df43093b7a46d03dd7a744ed39285f95e00a6bb5..3510274ba195a63f45219c402772c829a3c13fad 100644 (file)
@@ -728,7 +728,7 @@ static struct btrfs_fs_devices *find_fsid_reverted_metadata(
        /*
         * Handle the case where the scanned device is part of an fs whose last
         * metadata UUID change reverted it to the original FSID. At the same
-        * time * fs_devices was first created by another constitutent device
+        * time fs_devices was first created by another constituent device
         * which didn't fully observe the operation. This results in an
         * btrfs_fs_devices created with metadata/fsid different AND
         * btrfs_fs_devices::fsid_change set AND the metadata_uuid of the