]> git.ipfire.org Git - people/ms/linux.git/blobdiff - fs/proc/task_nommu.c
new helper: file_inode(file)
[people/ms/linux.git] / fs / proc / task_nommu.c
index 1ccfa537f5f5dfaac3c1351dabe391f0ca3e6d22..56123a6f462e7d9d84275d88f093c0926bf88576 100644 (file)
@@ -149,7 +149,7 @@ static int nommu_vma_show(struct seq_file *m, struct vm_area_struct *vma,
        file = vma->vm_file;
 
        if (file) {
-               struct inode *inode = vma->vm_file->f_path.dentry->d_inode;
+               struct inode *inode = file_inode(vma->vm_file);
                dev = inode->i_sb->s_dev;
                ino = inode->i_ino;
                pgoff = (loff_t)vma->vm_pgoff << PAGE_SHIFT;