projects
/
profile
/
common
/
kernel-common.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
118b230
)
proc: kill the extra proc_readfd_common()->dir_emit_dots()
author
Oleg Nesterov
<oleg@redhat.com>
Sat, 24 Aug 2013 15:14:34 +0000
(17:14 +0200)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Sat, 24 Aug 2013 16:10:22 +0000
(12:10 -0400)
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>
fs/proc/fd.c
patch
|
blob
|
history
diff --git
a/fs/proc/fd.c
b/fs/proc/fd.c
index
75f2890
..
0ff80f9
100644
(file)
--- a/
fs/proc/fd.c
+++ b/
fs/proc/fd.c
@@
-230,8
+230,6
@@
static int proc_readfd_common(struct file *file, struct dir_context *ctx,
if (!dir_emit_dots(file, ctx))
goto out;
- if (!dir_emit_dots(file, ctx))
- goto out;
files = get_files_struct(p);
if (!files)
goto out;