]> git.karo-electronics.de Git - linux-beck.git/blobdiff - include/linux/hugetlb.h
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
[linux-beck.git] / include / linux / hugetlb.h
index eedc334fb6f5bb0de85e6b16da4ca206487fb96c..16e4e9a643fb18a67ef73fb7f0feef5b074449a5 100644 (file)
@@ -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)