]> www.infradead.org Git - linux.git/commitdiff
btrfs: fix typos in comments
authorDavid Sterba <dsterba@suse.com>
Wed, 25 May 2022 14:27:25 +0000 (16:27 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 25 Jul 2022 15:44:33 +0000 (17:44 +0200)
Codespell has found a few typos.

Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/ctree.h
fs/btrfs/disk-io.c
fs/btrfs/inode.c
fs/btrfs/ordered-data.c
fs/btrfs/raid56.c
fs/btrfs/space-info.c
fs/btrfs/subpage.c
fs/btrfs/super.c
fs/btrfs/sysfs.c
fs/btrfs/tree-log.c

index 9c21e214d29e410883fc82f2297e80e021144321..ad31cc5cdd50cd6d4c00a407f247ca3fb413b555 100644 (file)
@@ -2734,7 +2734,7 @@ int btrfs_get_extent_inline_ref_type(const struct extent_buffer *eb,
 u64 hash_extent_data_ref(u64 root_objectid, u64 owner, u64 offset);
 
 /*
- * Take the number of bytes to be checksummmed and figure out how many leaves
+ * Take the number of bytes to be checksummed and figure out how many leaves
  * it would require to store the csums for that many bytes.
  */
 static inline u64 btrfs_csum_bytes_to_leaves(
index de440ebf5648b059ff3a63022b9015b2a99ed0bf..018510188a0d13a6cb1c5276835b330bf4c4d939 100644 (file)
@@ -1872,7 +1872,7 @@ again:
 fail:
        /*
         * If our caller provided us an anonymous device, then it's his
-        * responsability to free it in case we fail. So we have to set our
+        * responsibility to free it in case we fail. So we have to set our
         * root's anon_dev to 0 to avoid a double free, once by btrfs_put_root()
         * and once again by our caller.
         */
index d50448bf8eedd951890d6e6f0a64ef131b90c70a..77a001554133468bb78f9b4f71f54dd9ce5b5abc 100644 (file)
@@ -4228,7 +4228,7 @@ skip_backref:
        /*
         * If we are in a rename context, we don't need to update anything in the
         * log. That will be done later during the rename by btrfs_log_new_name().
-        * Besides that, doing it here would only cause extra unncessary btree
+        * Besides that, doing it here would only cause extra unnecessary btree
         * operations on the log tree, increasing latency for applications.
         */
        if (!rename_ctx) {
index 1957b14b329a7a1eaf34d38b68b32c62274fb5d7..dc88d2b3721fdfed538a6b3817ab7c42185b662c 100644 (file)
@@ -275,7 +275,7 @@ void btrfs_add_ordered_sum(struct btrfs_ordered_extent *entry,
 /*
  * Mark all ordered extents io inside the specified range finished.
  *
- * @page:       The invovled page for the opeartion.
+ * @page:       The involved page for the operation.
  *              For uncompressed buffered IO, the page status also needs to be
  *              updated to indicate whether the pending ordered io is finished.
  *              Can be NULL for direct IO and compressed write.
@@ -285,7 +285,7 @@ void btrfs_add_ordered_sum(struct btrfs_ordered_extent *entry,
  *              extent are finished.
  *
  * This function is called for endio, thus the range must have ordered
- * extent(s) coveri it.
+ * extent(s) covering it.
  */
 void btrfs_mark_ordered_io_finished(struct btrfs_inode *inode,
                                struct page *page, u64 file_offset,
index a5b623ee6facdd5838eebe6921cda56029000c32..e03a38af12cdb28100b150a69b43d0e219290236 100644 (file)
@@ -132,7 +132,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 */
index 2dd8754cb990dd79a65210e5f27152b2bc183bc8..2cf8da1116eb280b4fc560b0cadd053626b9ebf7 100644 (file)
@@ -1280,7 +1280,7 @@ static void priority_reclaim_metadata_space(struct btrfs_fs_info *fs_info,
        to_reclaim = btrfs_calc_reclaim_metadata_size(fs_info, space_info);
        /*
         * This is the priority reclaim path, so to_reclaim could be >0 still
-        * because we may have only satisified the priority tickets and still
+        * because we may have only satisfied the priority tickets and still
         * left non priority tickets on the list.  We would then have
         * to_reclaim but ->bytes == 0.
         */
index a105b291444f3c0c69a55178b5174a112152b0a5..0146fee730a093ab985fd4a4878bcf8634116c58 100644 (file)
@@ -123,7 +123,7 @@ int btrfs_attach_subpage(const struct btrfs_fs_info *fs_info,
        struct btrfs_subpage *subpage;
 
        /*
-        * We have cases like a dummy extent buffer page, which is not mappped
+        * We have cases like a dummy extent buffer page, which is not mapped
         * and doesn't need to be locked.
         */
        if (page->mapping)
index 6627dd7875ee0ede0b478e5f4e975ef6737875e5..24b86061c5df30bd70612f4fca0ecc8d98f30187 100644 (file)
@@ -72,7 +72,7 @@ static int btrfs_remount(struct super_block *sb, int *flags, char *data);
 #define STATE_STRING_BUF_LEN   (sizeof(STATE_STRING_PREFACE) + BTRFS_FS_STATE_COUNT)
 
 /*
- * Characters to print to indicate error conditions or uncommon filesystem sate.
+ * Characters to print to indicate error conditions or uncommon filesystem state.
  * RO is not an error.
  */
 static const char fs_state_chars[] = {
index 92a1fa8e3da6ffaf07902abf4190b1379ec2032d..963d6321981454df54e51ecd895eb0ab66b4c38e 100644 (file)
@@ -296,7 +296,7 @@ BTRFS_FEAT_ATTR_COMPAT_RO(verity, VERITY);
 /*
  * Features which depend on feature bits and may differ between each fs.
  *
- * /sys/fs/btrfs/features      - all available features implemeted by this version
+ * /sys/fs/btrfs/features      - all available features implemented by this version
  * /sys/fs/btrfs/UUID/features - features of the fs which are enabled or
  *                               can be changed on a mounted filesystem.
  */
index 370388fadf960a4d6fb075b402b172e9a82d400b..1201f083d4dbc59984c24253ed26a8bf97318939 100644 (file)
@@ -2287,7 +2287,7 @@ static noinline int check_item_in_log(struct btrfs_trans_handle *trans,
        struct btrfs_key location;
 
        /*
-        * Currenly we only log dir index keys. Even if we replay a log created
+        * Currently we only log dir index keys. Even if we replay a log created
         * by an older kernel that logged both dir index and dir item keys, all
         * we need to do is process the dir index keys, we (and our caller) can
         * safely ignore dir item keys (key type BTRFS_DIR_ITEM_KEY).