]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - drivers/scsi/st.c
new helper: file_inode(file)
[mirror_ubuntu-artful-kernel.git] / drivers / scsi / st.c
index 98156a97c47259aaaa01df37accbcc8c86e7c27f..3e2b3717cb5cfec32c8b0c622f1ecf424171e47e 100644 (file)
@@ -977,7 +977,7 @@ static int check_tape(struct scsi_tape *STp, struct file *filp)
        struct st_modedef *STm;
        struct st_partstat *STps;
        char *name = tape_name(STp);
-       struct inode *inode = filp->f_path.dentry->d_inode;
+       struct inode *inode = file_inode(filp);
        int mode = TAPE_MODE(inode);
 
        STp->ready = ST_READY;