diff mbox series

[04/13] ext4: Fix a small typo in ext4_mb_prefetch_fini()

Message ID 39e9a6c41244ecd49552262af51aa8aa5ae1bc9d.1685009579.git.ojaswin@linux.ibm.com (mailing list archive)
State Handled Elsewhere, archived
Headers show
Series multiblock allocator improvements | expand

Commit Message

Ojaswin Mujoo May 25, 2023, 11:32 a.m. UTC
Fix a small typo in the if condition introduced in the
commit b6bef1b5.

Signed-off-by: Ojaswin Mujoo <ojaswin@linux.ibm.com>
---
 fs/ext4/mballoc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/fs/ext4/mballoc.c b/fs/ext4/mballoc.c
index 288d504ee744..72c5d1a33bad 100644
--- a/fs/ext4/mballoc.c
+++ b/fs/ext4/mballoc.c
@@ -2609,7 +2609,7 @@  void ext4_mb_prefetch_fini(struct super_block *sb, ext4_group_t group,
 		gdp = ext4_get_group_desc(sb, group, NULL);
 		grp = ext4_get_group_info(sb, group);
 
-		if (grp && grp && EXT4_MB_GRP_NEED_INIT(grp) &&
+		if (gdp && grp && EXT4_MB_GRP_NEED_INIT(grp) &&
 		    ext4_free_group_clusters(sb, gdp) > 0 &&
 		    !(ext4_has_group_desc_csum(sb) &&
 		      (gdp->bg_flags & cpu_to_le16(EXT4_BG_BLOCK_UNINIT)))) {