diff options
Diffstat (limited to 'fs/ext3/dir.c')
-rw-r--r-- | fs/ext3/dir.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/ext3/dir.c b/fs/ext3/dir.c index dd91264ba94f..87eccbbca255 100644 --- a/fs/ext3/dir.c +++ b/fs/ext3/dir.c | |||
@@ -99,7 +99,7 @@ static int ext3_readdir(struct file * filp, | |||
99 | int i, stored; | 99 | int i, stored; |
100 | struct ext3_dir_entry_2 *de; | 100 | struct ext3_dir_entry_2 *de; |
101 | int err; | 101 | int err; |
102 | struct inode *inode = filp->f_path.dentry->d_inode; | 102 | struct inode *inode = file_inode(filp); |
103 | struct super_block *sb = inode->i_sb; | 103 | struct super_block *sb = inode->i_sb; |
104 | int ret = 0; | 104 | int ret = 0; |
105 | int dir_has_error = 0; | 105 | int dir_has_error = 0; |
@@ -114,7 +114,7 @@ static int ext3_readdir(struct file * filp, | |||
114 | * We don't set the inode dirty flag since it's not | 114 | * We don't set the inode dirty flag since it's not |
115 | * critical that it get flushed back to the disk. | 115 | * critical that it get flushed back to the disk. |
116 | */ | 116 | */ |
117 | EXT3_I(filp->f_path.dentry->d_inode)->i_flags &= ~EXT3_INDEX_FL; | 117 | EXT3_I(file_inode(filp))->i_flags &= ~EXT3_INDEX_FL; |
118 | } | 118 | } |
119 | stored = 0; | 119 | stored = 0; |
120 | offset = filp->f_pos & (sb->s_blocksize - 1); | 120 | offset = filp->f_pos & (sb->s_blocksize - 1); |
@@ -457,7 +457,7 @@ static int call_filldir(struct file * filp, void * dirent, | |||
457 | { | 457 | { |
458 | struct dir_private_info *info = filp->private_data; | 458 | struct dir_private_info *info = filp->private_data; |
459 | loff_t curr_pos; | 459 | loff_t curr_pos; |
460 | struct inode *inode = filp->f_path.dentry->d_inode; | 460 | struct inode *inode = file_inode(filp); |
461 | struct super_block * sb; | 461 | struct super_block * sb; |
462 | int error; | 462 | int error; |
463 | 463 | ||
@@ -487,7 +487,7 @@ static int ext3_dx_readdir(struct file * filp, | |||
487 | void * dirent, filldir_t filldir) | 487 | void * dirent, filldir_t filldir) |
488 | { | 488 | { |
489 | struct dir_private_info *info = filp->private_data; | 489 | struct dir_private_info *info = filp->private_data; |
490 | struct inode *inode = filp->f_path.dentry->d_inode; | 490 | struct inode *inode = file_inode(filp); |
491 | struct fname *fname; | 491 | struct fname *fname; |
492 | int ret; | 492 | int ret; |
493 | 493 | ||