]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - fs/hugetlbfs/inode.c
new helper: file_inode(file)
[karo-tx-linux.git] / fs / hugetlbfs / inode.c
index 78bde32ea9518d3fffe72d24864b6959bb369781..edb42ea60c761afff0cf8876c6d7bccb724eb4dd 100644 (file)
@@ -97,7 +97,7 @@ static void huge_pagevec_release(struct pagevec *pvec)
 
 static int hugetlbfs_file_mmap(struct file *file, struct vm_area_struct *vma)
 {
-       struct inode *inode = file->f_path.dentry->d_inode;
+       struct inode *inode = file_inode(file);
        loff_t len, vma_len;
        int ret;
        struct hstate *h = hstate_file(file);