diff options
Diffstat (limited to 'fs/proc/task_mmu.c')
-rw-r--r-- | fs/proc/task_mmu.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/proc/task_mmu.c b/fs/proc/task_mmu.c index ca5ce7f9f800..3e636d864d56 100644 --- a/fs/proc/task_mmu.c +++ b/fs/proc/task_mmu.c | |||
@@ -271,7 +271,7 @@ show_map_vma(struct seq_file *m, struct vm_area_struct *vma, int is_pid) | |||
271 | const char *name = NULL; | 271 | const char *name = NULL; |
272 | 272 | ||
273 | if (file) { | 273 | if (file) { |
274 | struct inode *inode = vma->vm_file->f_path.dentry->d_inode; | 274 | struct inode *inode = file_inode(vma->vm_file); |
275 | dev = inode->i_sb->s_dev; | 275 | dev = inode->i_sb->s_dev; |
276 | ino = inode->i_ino; | 276 | ino = inode->i_ino; |
277 | pgoff = ((loff_t)vma->vm_pgoff) << PAGE_SHIFT; | 277 | pgoff = ((loff_t)vma->vm_pgoff) << PAGE_SHIFT; |
@@ -743,7 +743,7 @@ static ssize_t clear_refs_write(struct file *file, const char __user *buf, | |||
743 | return rv; | 743 | return rv; |
744 | if (type < CLEAR_REFS_ALL || type > CLEAR_REFS_MAPPED) | 744 | if (type < CLEAR_REFS_ALL || type > CLEAR_REFS_MAPPED) |
745 | return -EINVAL; | 745 | return -EINVAL; |
746 | task = get_proc_task(file->f_path.dentry->d_inode); | 746 | task = get_proc_task(file_inode(file)); |
747 | if (!task) | 747 | if (!task) |
748 | return -ESRCH; | 748 | return -ESRCH; |
749 | mm = get_task_mm(task); | 749 | mm = get_task_mm(task); |
@@ -1015,7 +1015,7 @@ static int pagemap_hugetlb_range(pte_t *pte, unsigned long hmask, | |||
1015 | static ssize_t pagemap_read(struct file *file, char __user *buf, | 1015 | static ssize_t pagemap_read(struct file *file, char __user *buf, |
1016 | size_t count, loff_t *ppos) | 1016 | size_t count, loff_t *ppos) |
1017 | { | 1017 | { |
1018 | struct task_struct *task = get_proc_task(file->f_path.dentry->d_inode); | 1018 | struct task_struct *task = get_proc_task(file_inode(file)); |
1019 | struct mm_struct *mm; | 1019 | struct mm_struct *mm; |
1020 | struct pagemapread pm; | 1020 | struct pagemapread pm; |
1021 | int ret = -ESRCH; | 1021 | int ret = -ESRCH; |