Skip to contentSkip to conversation

ext4: Fix build error when DX_DEBUG is defined

PATCH RESEND Applied Gabriel Krisman Bertazi 2 participants 2 messages Sep 25, 2018 – Oct 3, 2018 ext4 file system

lore
Share & tools
lore
#0 lore raw

PATCH RESEND 1/1 ext4: Fix build error when DX_DEBUG is defined

Enabling DX_DEBUG triggers the build error below. info is an attribute of the dxroot structure.

linux/fs/ext4/namei.c:2264:12: error: ‘info’ undeclared (first use in this function); did you mean ‘insl’?

	   	  info->indirect_levels));
Fixes e08ac99fa2a2 ("ext4: add largedir feature")
---
 fs/ext4/namei.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/ext4/namei.c +1 -1
index 377d516c475f..67a38532032a 100644
@@ -2261,7 +2261,7 @@ static int ext4_dx_add_entry(handle_t *handle, struct ext4_filename *fname,
 			dxroot->info.indirect_levels += 1;
 			dxtrace(printk(KERN_DEBUG
 				       "Creating %d level index...\n",
-				       info->indirect_levels));
+				       dxroot->info.indirect_levels));
 			err = ext4_handle_dirty_dx_node(handle, dir, frame->bh);
 			if (err)
 				goto journal_error;
Signature · 1 line
2.19.0
maintainer Applied
#1 lore raw
Quoted 10 lines · Gabriel Krisman Bertazi

Enabling DX_DEBUG triggers the build error below. info is an attribute of the dxroot structure.

linux/fs/ext4/namei.c:2264:12: error: ‘info’ undeclared (first use in this function); did you mean ‘insl’?

	   	  info->indirect_levels));
Fixes e08ac99fa2a2 ("ext4: add largedir feature")

Applied, thanks.

- Ted