Ver código fonte

[PATCH] struct path: convert oprofile

Signed-off-by: Josef Sipek <jsipek@fsl.cs.sunysb.edu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Josef Sipek 18 anos atrás
pai
commit
1fb1430b14
1 arquivos alterados com 4 adições e 4 exclusões
  1. 4 4
      drivers/oprofile/buffer_sync.c

+ 4 - 4
drivers/oprofile/buffer_sync.c

@@ -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,
-			vma->vm_file->f_vfsmnt);
+		cookie = fast_get_dcookie(vma->vm_file->f_path.dentry,
+			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
 			continue;
 			continue;
 
 
 		if (vma->vm_file) {
 		if (vma->vm_file) {
-			cookie = fast_get_dcookie(vma->vm_file->f_dentry,
-				vma->vm_file->f_vfsmnt);
+			cookie = fast_get_dcookie(vma->vm_file->f_path.dentry,
+				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 {