[PATCH][next] btrfs: Fix spelling mistake "geneartion" -> "generation"

Colin Ian King posted 1 patch 2 years, 5 months ago
fs/btrfs/scrub.c        | 4 ++--
fs/btrfs/tree-checker.c | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
[PATCH][next] btrfs: Fix spelling mistake "geneartion" -> "generation"
Posted by Colin Ian King 2 years, 5 months ago
There are a handful of spelling mistakes of generation. Fix them.

Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
---
 fs/btrfs/scrub.c        | 4 ++--
 fs/btrfs/tree-checker.c | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/fs/btrfs/scrub.c b/fs/btrfs/scrub.c
index ccb4f58ae307..82e6b98878a8 100644
--- a/fs/btrfs/scrub.c
+++ b/fs/btrfs/scrub.c
@@ -69,7 +69,7 @@ struct scrub_sector_verification {
 		/*
 		 * Extra info for metadata verification.
 		 * All sectors inside a tree block shares the same
-		 * geneartion.
+		 * generation.
 		 */
 		u64 generation;
 	};
@@ -712,7 +712,7 @@ static void scrub_verify_one_metadata(struct scrub_stripe *stripe, int sector_nr
 		bitmap_set(&stripe->error_bitmap, sector_nr,
 			   sectors_per_tree);
 		btrfs_warn_rl(fs_info,
-		"tree block %llu mirror %u has bad geneartion, has %llu want %llu",
+		"tree block %llu mirror %u has bad generation, has %llu want %llu",
 			      logical, stripe->mirror_num,
 			      btrfs_stack_header_generation(header),
 			      stripe->sectors[sector_nr].generation);
diff --git a/fs/btrfs/tree-checker.c b/fs/btrfs/tree-checker.c
index e2b54793bf0c..f106a50e6900 100644
--- a/fs/btrfs/tree-checker.c
+++ b/fs/btrfs/tree-checker.c
@@ -1158,7 +1158,7 @@ static int check_root_item(struct extent_buffer *leaf, struct btrfs_key *key,
 	/*
 	 * For legacy root item, the members starting at generation_v2 will be
 	 * all filled with 0.
-	 * And since we allow geneartion_v2 as 0, it will still pass the check.
+	 * And since we allow generation_v2 as 0, it will still pass the check.
 	 */
 	read_extent_buffer(leaf, &ri, btrfs_item_ptr_offset(leaf, slot),
 			   btrfs_item_size(leaf, slot));
-- 
2.30.2
Re: [PATCH][next] btrfs: Fix spelling mistake "geneartion" -> "generation"
Posted by David Sterba 2 years, 5 months ago
On Wed, Apr 05, 2023 at 11:00:40AM +0100, Colin Ian King wrote:
> There are a handful of spelling mistakes of generation. Fix them.

Thanks for spotting it, seems that 'geneartion' is Qu's favourite typo,
I'll fix it in the topic branch.