new helper: file_inode(file)
[linux-2.6-block.git] / fs / qnx4 / dir.c
index 7b0329468a5d9629196527039fa31771554a0494..28ce014b3ceff09e8ad2a2d2cea8716802a1dc5b 100644 (file)
@@ -16,7 +16,7 @@
 
 static int qnx4_readdir(struct file *filp, void *dirent, filldir_t filldir)
 {
-       struct inode *inode = filp->f_path.dentry->d_inode;
+       struct inode *inode = file_inode(filp);
        unsigned int offset;
        struct buffer_head *bh;
        struct qnx4_inode_entry *de;