diff options
Diffstat (limited to 'fs/ext3/namei.c')
-rw-r--r-- | fs/ext3/namei.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ext3/namei.c b/fs/ext3/namei.c index 88f64eb1b6fa..692de13e3596 100644 --- a/fs/ext3/namei.c +++ b/fs/ext3/namei.c | |||
@@ -623,7 +623,7 @@ int ext3_htree_fill_tree(struct file *dir_file, __u32 start_hash, | |||
623 | 623 | ||
624 | dxtrace(printk("In htree_fill_tree, start hash: %x:%x\n", start_hash, | 624 | dxtrace(printk("In htree_fill_tree, start hash: %x:%x\n", start_hash, |
625 | start_minor_hash)); | 625 | start_minor_hash)); |
626 | dir = dir_file->f_path.dentry->d_inode; | 626 | dir = file_inode(dir_file); |
627 | if (!(EXT3_I(dir)->i_flags & EXT3_INDEX_FL)) { | 627 | if (!(EXT3_I(dir)->i_flags & EXT3_INDEX_FL)) { |
628 | hinfo.hash_version = EXT3_SB(dir->i_sb)->s_def_hash_version; | 628 | hinfo.hash_version = EXT3_SB(dir->i_sb)->s_def_hash_version; |
629 | if (hinfo.hash_version <= DX_HASH_TEA) | 629 | if (hinfo.hash_version <= DX_HASH_TEA) |
@@ -637,7 +637,7 @@ int ext3_htree_fill_tree(struct file *dir_file, __u32 start_hash, | |||
637 | } | 637 | } |
638 | hinfo.hash = start_hash; | 638 | hinfo.hash = start_hash; |
639 | hinfo.minor_hash = 0; | 639 | hinfo.minor_hash = 0; |
640 | frame = dx_probe(NULL, dir_file->f_path.dentry->d_inode, &hinfo, frames, &err); | 640 | frame = dx_probe(NULL, file_inode(dir_file), &hinfo, frames, &err); |
641 | if (!frame) | 641 | if (!frame) |
642 | return err; | 642 | return err; |
643 | 643 | ||