Commit 1fb1430b authored by Josef Sipek's avatar Josef Sipek Committed by Linus Torvalds

[PATCH] struct path: convert oprofile

Signed-off-by: default avatarJosef Sipek <jsipek@fsl.cs.sunysb.edu>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 80a06780
...@@ -220,8 +220,8 @@ static unsigned long get_exec_dcookie(struct mm_struct * mm) ...@@ -220,8 +220,8 @@ static unsigned long get_exec_dcookie(struct mm_struct * mm)
continue; continue;
if (!(vma->vm_flags & VM_EXECUTABLE)) if (!(vma->vm_flags & VM_EXECUTABLE))
continue; continue;
cookie = fast_get_dcookie(vma->vm_file->f_dentry, cookie = fast_get_dcookie(vma->vm_file->f_path.dentry,
vma->vm_file->f_vfsmnt); vma->vm_file->f_path.mnt);
break; break;
} }
...@@ -246,8 +246,8 @@ static unsigned long lookup_dcookie(struct mm_struct * mm, unsigned long addr, o ...@@ -246,8 +246,8 @@ static unsigned long lookup_dcookie(struct mm_struct * mm, unsigned long addr, o
continue; continue;
if (vma->vm_file) { if (vma->vm_file) {
cookie = fast_get_dcookie(vma->vm_file->f_dentry, cookie = fast_get_dcookie(vma->vm_file->f_path.dentry,
vma->vm_file->f_vfsmnt); vma->vm_file->f_path.mnt);
*offset = (vma->vm_pgoff << PAGE_SHIFT) + addr - *offset = (vma->vm_pgoff << PAGE_SHIFT) + addr -
vma->vm_start; vma->vm_start;
} else { } else {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment