diff options
author | Josef Sipek <jsipek@fsl.cs.sunysb.edu> | 2006-12-08 05:37:30 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.osdl.org> | 2006-12-08 11:28:48 -0500 |
commit | b4d1ab58c016f4dffef4ff1eb392fa84e3c35024 (patch) | |
tree | 95229900a5bd022f89ec9a4268a5541808dbb119 /arch/powerpc/kernel/proc_ppc64.c | |
parent | 40fad04b224db982cce5f6226ebe3ceb6529b781 (diff) |
[PATCH] struct path: convert powerpc
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>
Diffstat (limited to 'arch/powerpc/kernel/proc_ppc64.c')
-rw-r--r-- | arch/powerpc/kernel/proc_ppc64.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/powerpc/kernel/proc_ppc64.c b/arch/powerpc/kernel/proc_ppc64.c index f598cb519539..dd7001cacf75 100644 --- a/arch/powerpc/kernel/proc_ppc64.c +++ b/arch/powerpc/kernel/proc_ppc64.c | |||
@@ -83,7 +83,7 @@ __initcall(proc_ppc64_init); | |||
83 | static loff_t page_map_seek( struct file *file, loff_t off, int whence) | 83 | static loff_t page_map_seek( struct file *file, loff_t off, int whence) |
84 | { | 84 | { |
85 | loff_t new; | 85 | loff_t new; |
86 | struct proc_dir_entry *dp = PDE(file->f_dentry->d_inode); | 86 | struct proc_dir_entry *dp = PDE(file->f_path.dentry->d_inode); |
87 | 87 | ||
88 | switch(whence) { | 88 | switch(whence) { |
89 | case 0: | 89 | case 0: |
@@ -106,13 +106,13 @@ static loff_t page_map_seek( struct file *file, loff_t off, int whence) | |||
106 | static ssize_t page_map_read( struct file *file, char __user *buf, size_t nbytes, | 106 | static ssize_t page_map_read( struct file *file, char __user *buf, size_t nbytes, |
107 | loff_t *ppos) | 107 | loff_t *ppos) |
108 | { | 108 | { |
109 | struct proc_dir_entry *dp = PDE(file->f_dentry->d_inode); | 109 | struct proc_dir_entry *dp = PDE(file->f_path.dentry->d_inode); |
110 | return simple_read_from_buffer(buf, nbytes, ppos, dp->data, dp->size); | 110 | return simple_read_from_buffer(buf, nbytes, ppos, dp->data, dp->size); |
111 | } | 111 | } |
112 | 112 | ||
113 | static int page_map_mmap( struct file *file, struct vm_area_struct *vma ) | 113 | static int page_map_mmap( struct file *file, struct vm_area_struct *vma ) |
114 | { | 114 | { |
115 | struct proc_dir_entry *dp = PDE(file->f_dentry->d_inode); | 115 | struct proc_dir_entry *dp = PDE(file->f_path.dentry->d_inode); |
116 | 116 | ||
117 | if ((vma->vm_end - vma->vm_start) > dp->size) | 117 | if ((vma->vm_end - vma->vm_start) > dp->size) |
118 | return -EINVAL; | 118 | return -EINVAL; |