[PATCH] de_thread: Use tsk not current
authorEric W. Biederman <ebiederm@xmission.com>
Wed, 27 Sep 2006 08:51:13 +0000 (01:51 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 27 Sep 2006 15:26:20 +0000 (08:26 -0700)
commitaafe6c2a2b6bce5a3a4913ce5c07e85ea143144d
tree602fefd6b12dad6351bb91661defce0abaf9b24d
parent66f37509fc7191df468a8d183374f48b13bacb73
[PATCH] de_thread: Use tsk not current

Ingo Oeser pointed out that because current expands to an inline function
it is more space efficient and somewhat faster to simply keep a cached copy
of current in another variable.  This patch implements that for the
de_thread function.

(akpm: saves nearly 100 bytes of text on x86)

Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/exec.c