make get_file() return its argument
[linux-2.6-block.git] / fs / proc / base.c
index b55c3bb298e365e296f18eb76f898f793c037cb2..f1e8438d21b5090067db780c0949cf45af8200c9 100644 (file)
@@ -1979,8 +1979,7 @@ proc_map_files_readdir(struct file *filp, void *dirent, filldir_t filldir)
                                if (++pos <= filp->f_pos)
                                        continue;
 
-                               get_file(vma->vm_file);
-                               info.file = vma->vm_file;
+                               info.file = get_file(vma->vm_file);
                                info.len = snprintf(info.name,
                                                sizeof(info.name), "%lx-%lx",
                                                vma->vm_start, vma->vm_end);