Commit a5a1955e0c2d4d325fabdf6b09aa3f9d33e78a10

Authored by Oleg Nesterov
Committed by Al Viro
1 parent 118b230225

proc: kill the extra proc_readfd_common()->dir_emit_dots()

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>

Showing 1 changed file with 0 additions and 2 deletions Side-by-side Diff

... ... @@ -230,8 +230,6 @@
230 230  
231 231 if (!dir_emit_dots(file, ctx))
232 232 goto out;
233   - if (!dir_emit_dots(file, ctx))
234   - goto out;
235 233 files = get_files_struct(p);
236 234 if (!files)
237 235 goto out;