new helper: file_inode(file)
[linux-2.6-block.git] / fs / befs / linuxvfs.c
index 2b3bda8d5e6838619222359de38370baedfce7a4..c8f4e25eb9e2f6e2818b17de47adb4a61e82eeca 100644 (file)
@@ -213,7 +213,7 @@ befs_lookup(struct inode *dir, struct dentry *dentry, unsigned int flags)
 static int
 befs_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;
        befs_data_stream *ds = &BEFS_I(inode)->i_data.ds;
        befs_off_t value;