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: e08ac99fa2 ("ext4: add largedir feature")
Signed-off-by: Gabriel Krisman Bertazi <krisman@collabora.co.uk>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Reviewed-by: Lukas Czerner <lczerner@redhat.com>
This commit is contained in:
Gabriel Krisman Bertazi 2018-10-02 12:43:51 -04:00 committed by Theodore Ts'o
parent f18b2b83a7
commit 799578ab16
1 changed files with 1 additions and 1 deletions

View File

@ -2261,7 +2261,7 @@ static int ext4_dx_add_entry(handle_t *handle, struct ext4_filename *fname,
dxroot->info.indirect_levels += 1; dxroot->info.indirect_levels += 1;
dxtrace(printk(KERN_DEBUG dxtrace(printk(KERN_DEBUG
"Creating %d level index...\n", "Creating %d level index...\n",
info->indirect_levels)); dxroot->info.indirect_levels));
err = ext4_handle_dirty_dx_node(handle, dir, frame->bh); err = ext4_handle_dirty_dx_node(handle, dir, frame->bh);
if (err) if (err)
goto journal_error; goto journal_error;