proc: pass "fd" by value in /proc/*/{fd,fdinfo} code
authorAlexey Dobriyan <adobriyan@gmail.com>
Thu, 31 May 2012 23:26:18 +0000 (16:26 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 1 Jun 2012 00:49:29 +0000 (17:49 -0700)
commitaf5e6171437c9d62d84459b24877c94c23782676
tree06ee8cef7f47a0f4facd84f7676c39001965e549
parentf05ed3f1abefd37c08fbf08c766d2abd40607777
proc: pass "fd" by value in /proc/*/{fd,fdinfo} code

Pass "fd" directly, not via pointer -- one less memory read.

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/proc/base.c