Skip to contentSkip to conversation

BTRFS: Mundane typo fixes

PATCH New Bhaskar Chowdhury 1 participant 11 messages Mar 28, 2021 Btrfs file system

lore
Share & tools
lore
#0 lore raw

cover BTRFS: Mundane typo fixes

This patch series fixes trivial typos as they appear in the files.

Bhaskar Chowdhury (10):
extent-map-tests.c: A typo fix
dev-replace.c: A typo fix
ioctl.c: A typo fix
zoned.c: A typo fix
inode.c: Couple of typo fixes
scrub.c: Fix a typo
locking.c: Fix same typo in couple of places
volumes.c: Fix a typo
extent-tree.c: Fix a typo
disk-io.c: Fix a typo

 fs/btrfs/dev-replace.c            | 2 +-
 fs/btrfs/disk-io.c                | 2 +-
 fs/btrfs/extent-tree.c            | 2 +-
 fs/btrfs/inode.c                  | 4 ++--
 fs/btrfs/ioctl.c                  | 2 +-
 fs/btrfs/locking.c                | 4 ++--
 fs/btrfs/scrub.c                  | 2 +-
 fs/btrfs/tests/extent-map-tests.c | 2 +-
 fs/btrfs/volumes.c                | 2 +-
 fs/btrfs/zoned.c                  | 2 +-
 10 files changed, 12 insertions(+), 12 deletions(-)

--
2.26.2

#1 lore raw

PATCH 1/10 extent-map-tests.c: A typo fix

s/interesects/intersects/

---
 fs/btrfs/tests/extent-map-tests.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/btrfs/tests/extent-map-tests.c +1 -1
index c0aefe6dee0b..319fed82d741 100644
@@ -557,7 +557,7 @@ int btrfs_test_extent_map(void)
 		{
 			/*
 			 * Test a chunk with 2 data stripes one of which
-			 * interesects the physical address of the super block
+			 * intersects the physical address of the super block
 			 * is correctly recognised.
 			 */
 			.raid_type = BTRFS_BLOCK_GROUP_RAID1,

--
2.26.2

#2 lore raw

PATCH 2/10 dev-replace.c: A typo fix

In reply to Bhaskar Chowdhury

s/contans/contains/

---
 fs/btrfs/dev-replace.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/btrfs/dev-replace.c +1 -1
index d05f73530af7..d029be40ea6f 100644
@@ -37,7 +37,7 @@
  * - Write duplication
  *
  *   All new writes will be written to both target and source devices, so even
- *   if replace gets canceled, sources device still contans up-to-date data.
+ *   if replace gets canceled, sources device still contains up-to-date data.
  *
  *   Location:		handle_ops_on_dev_replace() from __btrfs_map_block()
  *   Start:		btrfs_dev_replace_start()

--
2.26.2

#3 lore raw

PATCH 3/10 ioctl.c: A typo fix

In reply to Bhaskar Chowdhury

s/termined/terminated/

---
 fs/btrfs/ioctl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/btrfs/ioctl.c +1 -1
index e8d53fea4c61..98ed14a0682e 100644
@@ -3022,7 +3022,7 @@ static noinline int btrfs_ioctl_snap_destroy(struct file *file,
 				err = PTR_ERR(subvol_name_ptr);
 				goto free_parent;
 			}
-			/* subvol_name_ptr is already NULL termined */
+			/* subvol_name_ptr is already NULL terminated */
 			subvol_name = (char *)kbasename(subvol_name_ptr);
 		}
 	} else {

--
2.26.2

#4 lore raw

PATCH 4/10 zoned.c: A typo fix

In reply to Bhaskar Chowdhury

s/beggining/beginning/

---
 fs/btrfs/zoned.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/btrfs/zoned.c +1 -1
index 1f972b75a9ab..d6cd0d4eb1a9 100644
@@ -383,7 +383,7 @@ int btrfs_get_dev_zone_info(struct btrfs_device *device)
 		}
 
 		/*
-		 * If zones[0] is conventional, always use the beggining of the
+		 * If zones[0] is conventional, always use the beginning of the
 		 * zone to record superblock. No need to validate in that case.
 		 */
 		if (zone_info->sb_zones[BTRFS_NR_SB_LOG_ZONES * i].type ==

--
2.26.2

#5 lore raw

PATCH 5/10 inode.c: Couple of typo fixes

In reply to Bhaskar Chowdhury

s/contaning/containing/
s/clearning/clearing/

---
 fs/btrfs/inode.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
fs/btrfs/inode.c +2 -2
index a520775949a0..dd7cc65db7bd 100644
@@ -2784,8 +2784,8 @@ static int insert_reserved_file_extent(struct btrfs_trans_handle *trans,
 	/*
 	 * If we dropped an inline extent here, we know the range where it is
 	 * was not marked with the EXTENT_DELALLOC_NEW bit, so we update the
-	 * number of bytes only for that range contaning the inline extent.
-	 * The remaining of the range will be processed when clearning the
+	 * number of bytes only for that range containing the inline extent.
+	 * The remaining of the range will be processed when clearing the
 	 * EXTENT_DELALLOC_BIT bit through the ordered extent completion.
 	 */
 	if (file_pos == 0 && !IS_ALIGNED(drop_args.bytes_found, sectorsize)) {

--
2.26.2

#6 lore raw

PATCH 6/10 scrub.c: Fix a typo

In reply to Bhaskar Chowdhury

s/reponsible/responsible/

---
 fs/btrfs/scrub.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/btrfs/scrub.c +1 -1
index 3d9088eab2fc..14de898967bf 100644
@@ -2426,7 +2426,7 @@ static void drop_csum_range(struct scrub_ctx *sctx, struct btrfs_ordered_sum *su
  * the csum into @csum.
  *
  * The search source is sctx->csum_list, which is a pre-populated list
- * storing bytenr ordered csum ranges.  We're reponsible to cleanup any range
+ * storing bytenr ordered csum ranges.  We're responsible to cleanup any range
  * that is before @logical.
  *
  * Return 0 if there is no csum for the range.

--
2.26.2

#7 lore raw

PATCH 7/10 locking.c: Fix same typo in couple of places

In reply to Bhaskar Chowdhury

s/Retrun/Return/ ..... two different places.

---
 fs/btrfs/locking.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
fs/btrfs/locking.c +2 -2
index 5fafc5e89bb7..313d9d685adb 100644
@@ -57,7 +57,7 @@ void btrfs_tree_read_lock(struct extent_buffer *eb)
 /*
  * Try-lock for read.
  *
- * Retrun 1 if the rwlock has been taken, 0 otherwise
+ * Return 1 if the rwlock has been taken, 0 otherwise
  */
 int btrfs_try_tree_read_lock(struct extent_buffer *eb)
 {
@@ -72,7 +72,7 @@ int btrfs_try_tree_read_lock(struct extent_buffer *eb)
 /*
  * Try-lock for write.
  *
- * Retrun 1 if the rwlock has been taken, 0 otherwise
+ * Return 1 if the rwlock has been taken, 0 otherwise
  */
 int btrfs_try_tree_write_lock(struct extent_buffer *eb)
 {

--
2.26.2

#8 lore raw

PATCH 8/10 volumes.c: Fix a typo

In reply to Bhaskar Chowdhury

s/bondary/boundary/

---
 fs/btrfs/volumes.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/btrfs/volumes.c +1 -1
index 1c6810bbaf8b..ac85558b91c2 100644
@@ -7797,7 +7797,7 @@ static int verify_one_dev_extent(struct btrfs_fs_info *fs_info,
 		ret = -EUCLEAN;
 	}
 
-	/* Make sure no dev extent is beyond device bondary */
+	/* Make sure no dev extent is beyond device boundary */
 	dev = btrfs_find_device(fs_info->fs_devices, devid, NULL, NULL);
 	if (!dev) {
 		btrfs_err(fs_info, "failed to find devid %llu", devid);

--
2.26.2

#9 lore raw

PATCH 9/10 extent-tree.c: Fix a typo

In reply to Bhaskar Chowdhury

s/Otheriwse/Otherwise/

---
 fs/btrfs/extent-tree.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/btrfs/extent-tree.c +1 -1
index 36a3c973fda1..d0532754af15 100644
@@ -1421,7 +1421,7 @@ int btrfs_inc_extent_ref(struct btrfs_trans_handle *trans,
  *		    bytenr of the parent block. Since new extents are always
  *		    created with indirect references, this will only be the case
  *		    when relocating a shared extent. In that case, root_objectid
- *		    will be BTRFS_TREE_RELOC_OBJECTID. Otheriwse, parent must
+ *		    will be BTRFS_TREE_RELOC_OBJECTID. Otherwise, parent must
  *		    be 0
  *
  * @root_objectid:  The id of the root where this modification has originated,

--
2.26.2

#10 lore raw

PATCH 10/10 disk-io.c: Fix a typo

In reply to Bhaskar Chowdhury

s/traget/target/

---
 fs/btrfs/disk-io.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/btrfs/disk-io.c +1 -1
index 289f1f09481d..230918d34f87 100644
@@ -3367,7 +3367,7 @@ int __cold open_ctree(struct super_block *sb, struct btrfs_fs_devices *fs_device
 	 * At this point we know all the devices that make this filesystem,
 	 * including the seed devices but we don't know yet if the replace
 	 * target is required. So free devices that are not part of this
-	 * filesystem but skip the replace traget device which is checked
+	 * filesystem but skip the replace target device which is checked
 	 * below in btrfs_init_dev_replace().
 	 */
 	btrfs_free_extra_devids(fs_devices);

--
2.26.2