2021-03-28 04:22:51

by Bhaskar Chowdhury

[permalink] [raw]
Subject: [PATCH 00/10] 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


2021-03-28 04:24:50

by Bhaskar Chowdhury

[permalink] [raw]
Subject: [PATCH 01/10] extent-map-tests.c: A typo fix

s/interesects/intersects/

Signed-off-by: Bhaskar Chowdhury <[email protected]>
---
fs/btrfs/tests/extent-map-tests.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/btrfs/tests/extent-map-tests.c b/fs/btrfs/tests/extent-map-tests.c
index c0aefe6dee0b..319fed82d741 100644
--- a/fs/btrfs/tests/extent-map-tests.c
+++ b/fs/btrfs/tests/extent-map-tests.c
@@ -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

2021-03-28 04:30:23

by Bhaskar Chowdhury

[permalink] [raw]
Subject: [PATCH 02/10] dev-replace.c: A typo fix

s/contans/contains/

Signed-off-by: Bhaskar Chowdhury <[email protected]>
---
fs/btrfs/dev-replace.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/btrfs/dev-replace.c b/fs/btrfs/dev-replace.c
index d05f73530af7..d029be40ea6f 100644
--- a/fs/btrfs/dev-replace.c
+++ b/fs/btrfs/dev-replace.c
@@ -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

2021-03-28 04:30:33

by Bhaskar Chowdhury

[permalink] [raw]
Subject: [PATCH 03/10] ioctl.c: A typo fix

s/termined/terminated/

Signed-off-by: Bhaskar Chowdhury <[email protected]>
---
fs/btrfs/ioctl.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c
index e8d53fea4c61..98ed14a0682e 100644
--- a/fs/btrfs/ioctl.c
+++ b/fs/btrfs/ioctl.c
@@ -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

2021-03-28 04:31:58

by Bhaskar Chowdhury

[permalink] [raw]
Subject: [PATCH 04/10] zoned.c: A typo fix

s/beggining/beginning/

Signed-off-by: Bhaskar Chowdhury <[email protected]>
---
fs/btrfs/zoned.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/btrfs/zoned.c b/fs/btrfs/zoned.c
index 1f972b75a9ab..d6cd0d4eb1a9 100644
--- a/fs/btrfs/zoned.c
+++ b/fs/btrfs/zoned.c
@@ -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

2021-03-28 04:32:06

by Bhaskar Chowdhury

[permalink] [raw]
Subject: [PATCH 05/10] inode.c: Couple of typo fixes

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

Signed-off-by: Bhaskar Chowdhury <[email protected]>
---
fs/btrfs/inode.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c
index a520775949a0..dd7cc65db7bd 100644
--- a/fs/btrfs/inode.c
+++ b/fs/btrfs/inode.c
@@ -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

2021-03-28 04:34:41

by Bhaskar Chowdhury

[permalink] [raw]
Subject: [PATCH 06/10] scrub.c: Fix a typo

s/reponsible/responsible/

Signed-off-by: Bhaskar Chowdhury <[email protected]>
---
fs/btrfs/scrub.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/btrfs/scrub.c b/fs/btrfs/scrub.c
index 3d9088eab2fc..14de898967bf 100644
--- a/fs/btrfs/scrub.c
+++ b/fs/btrfs/scrub.c
@@ -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

2021-03-28 04:36:26

by Bhaskar Chowdhury

[permalink] [raw]
Subject: [PATCH 07/10] locking.c: Fix same typo in couple of places

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

Signed-off-by: Bhaskar Chowdhury <[email protected]>
---
fs/btrfs/locking.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/fs/btrfs/locking.c b/fs/btrfs/locking.c
index 5fafc5e89bb7..313d9d685adb 100644
--- a/fs/btrfs/locking.c
+++ b/fs/btrfs/locking.c
@@ -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

2021-03-28 04:38:57

by Bhaskar Chowdhury

[permalink] [raw]
Subject: [PATCH 08/10] volumes.c: Fix a typo

s/bondary/boundary/

Signed-off-by: Bhaskar Chowdhury <[email protected]>
---
fs/btrfs/volumes.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c
index 1c6810bbaf8b..ac85558b91c2 100644
--- a/fs/btrfs/volumes.c
+++ b/fs/btrfs/volumes.c
@@ -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

2021-03-28 04:40:57

by Bhaskar Chowdhury

[permalink] [raw]
Subject: [PATCH 09/10] extent-tree.c: Fix a typo

s/Otheriwse/Otherwise/

Signed-off-by: Bhaskar Chowdhury <[email protected]>
---
fs/btrfs/extent-tree.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c
index 36a3c973fda1..d0532754af15 100644
--- a/fs/btrfs/extent-tree.c
+++ b/fs/btrfs/extent-tree.c
@@ -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

2021-03-28 04:42:09

by Bhaskar Chowdhury

[permalink] [raw]
Subject: [PATCH 10/10] disk-io.c: Fix a typo

s/traget/target/

Signed-off-by: Bhaskar Chowdhury <[email protected]>
---
fs/btrfs/disk-io.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c
index 289f1f09481d..230918d34f87 100644
--- a/fs/btrfs/disk-io.c
+++ b/fs/btrfs/disk-io.c
@@ -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