new helper: file_inode(file)
[linux-2.6-block.git] / drivers / scsi / 3w-sas.c
index 52a2f0580d97502bfababc11ac7a30f36d8bf100..c845bdbeb6c06f971923300e7f8e11182d18d84c 100644 (file)
@@ -757,7 +757,7 @@ static long twl_chrdev_ioctl(struct file *file, unsigned int cmd, unsigned long
        dma_addr_t dma_handle;
        int request_id = 0;
        TW_Ioctl_Driver_Command driver_command;
-       struct inode *inode = file->f_dentry->d_inode;
+       struct inode *inode = file_inode(file);
        TW_Ioctl_Buf_Apache *tw_ioctl;
        TW_Command_Full *full_command_packet;
        TW_Device_Extension *tw_dev = twl_device_extension_list[iminor(inode)];