summaryrefslogtreecommitdiffstats
path: root/fs/affs/dir.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/affs/dir.c')
-rw-r--r--fs/affs/dir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/affs/dir.c b/fs/affs/dir.c
index 8ca8f3a..fd11a6d 100644
--- a/fs/affs/dir.c
+++ b/fs/affs/dir.c
@@ -42,7 +42,7 @@ const struct inode_operations affs_dir_inode_operations = {
static int
affs_readdir(struct file *filp, void *dirent, filldir_t filldir)
{
- struct inode *inode = filp->f_path.dentry->d_inode;
+ struct inode *inode = file_inode(filp);
struct super_block *sb = inode->i_sb;
struct buffer_head *dir_bh;
struct buffer_head *fh_bh;
OpenPOWER on IntegriCloud