Skip to contentSkip to conversation

ext4: fix a copy and paste typo

PATCH Applied Dan Carpenter 3 participants 3 messages Dec 15, 2021 – Jan 6, 2022

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ext4: fix a copy and paste typo

This was obviously supposed to be an ext4 struct, not xfs. GCC doesn't care either way so it doesn't affect the build or runtime.

Fixes cebe85d570cf ("ext4: switch to the new mount api")
---
 fs/ext4/super.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/ext4/super.c +1 -1
index 5ec5a1c3b364..da40fb468d7f 100644
@@ -2077,7 +2077,7 @@ static void ext4_fc_free(struct fs_context *fc)
 
 int ext4_init_fs_context(struct fs_context *fc)
 {
-	struct xfs_fs_context	*ctx;
+	struct ext4_fs_context *ctx;
 
 	ctx = kzalloc(sizeof(struct ext4_fs_context), GFP_KERNEL);
 	if (!ctx)
Signature · 1 line
2.20.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 2 lines · Dan Carpenter

This was obviously supposed to be an ext4 struct, not xfs. GCC doesn't care either way so it doesn't affect the build or runtime.

Wow, what a mistake. Nice catch, thanks!

Quoted 23 lines
Fixes cebe85d570cf ("ext4: switch to the new mount api")
---
 fs/ext4/super.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/ext4/super.c +1 -1
index 5ec5a1c3b364..da40fb468d7f 100644
@@ -2077,7 +2077,7 @@ static void ext4_fc_free(struct fs_context *fc)
 
 int ext4_init_fs_context(struct fs_context *fc)
 {
-	struct xfs_fs_context	*ctx;
+	struct ext4_fs_context *ctx;
 
 	ctx = kzalloc(sizeof(struct ext4_fs_context), GFP_KERNEL);
 	if (!ctx)
Signature · 1 line
2.20.1
maintainer Applied
#2 lore raw
In reply to Dan Carpenter
Quoted 4 lines · Dan Carpenter

This was obviously supposed to be an ext4 struct, not xfs. GCC doesn't care either way so it doesn't affect the build or runtime.

Applied, thanks!

[1/1] ext4: fix a copy and paste typo

      commit: 42e2b7ca9b4d4a9bb350910a2a66628699365572

Best regards,

Signature · 1 line
Theodore Ts'o <[email protected]>