new helper: file_inode(file)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
@@ -281,7 +281,7 @@ static inline struct hstate *hstate_inode(struct inode *i)
|
||||
|
||||
static inline struct hstate *hstate_file(struct file *f)
|
||||
{
|
||||
return hstate_inode(f->f_dentry->d_inode);
|
||||
return hstate_inode(file_inode(f));
|
||||
}
|
||||
|
||||
static inline struct hstate *hstate_vma(struct vm_area_struct *vma)
|
||||
|
Reference in New Issue
Block a user