new helper: file_inode(file)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user