Skip to content

Commit

Permalink
proc: kill the extra proc_readfd_common()->dir_emit_dots()
Browse files Browse the repository at this point in the history
proc_readfd_common() does dir_emit_dots() twice in a row,
we need to do this only once.

Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
  • Loading branch information
Oleg Nesterov authored and Al Viro committed Aug 24, 2013
1 parent 118b230 commit a5a1955
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions fs/proc/fd.c
Original file line number Diff line number Diff line change
Expand Up @@ -228,8 +228,6 @@ static int proc_readfd_common(struct file *file, struct dir_context *ctx,
if (!p)
return -ENOENT;

if (!dir_emit_dots(file, ctx))
goto out;
if (!dir_emit_dots(file, ctx))
goto out;
files = get_files_struct(p);
Expand Down

0 comments on commit a5a1955

Please sign in to comment.