new helper: file_inode(file)
[linux-2.6-block.git] / fs / coda / pioctl.c
index ee0981f1375b1e46dbc49dc0363ca56802308295..3f5de96bbb58f77a43ef8ddb99217e843d813f51 100644 (file)
@@ -52,7 +52,7 @@ static long coda_pioctl(struct file *filp, unsigned int cmd,
        struct path path;
        int error;
        struct PioctlData data;
-       struct inode *inode = filp->f_dentry->d_inode;
+       struct inode *inode = file_inode(filp);
        struct inode *target_inode = NULL;
        struct coda_inode_info *cnp;