new helper: file_inode(file)
[linux-2.6-block.git] / fs / cifs / ioctl.c
index fd5009d56f9fcfba38989a98c292e79f6cf45546..6c9f1214cf0bd5d4b4e5f1ccd2751637247edc85 100644 (file)
@@ -30,7 +30,7 @@
 
 long cifs_ioctl(struct file *filep, unsigned int command, unsigned long arg)
 {
-       struct inode *inode = filep->f_dentry->d_inode;
+       struct inode *inode = file_inode(filep);
        int rc = -ENOTTY; /* strange error - but the precedent */
        unsigned int xid;
        struct cifs_sb_info *cifs_sb;