]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - fs/affs/dir.c
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
[karo-tx-linux.git] / fs / affs / dir.c
index 8ca8f3a555992b849dfc45482c02a8deeff7908e..fd11a6d608ee268c5813e028ecf4703a643f804f 100644 (file)
@@ -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;