summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorPetr Vandrovec <vandrove@vc.cvut.cz>2004-06-17 18:09:26 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-06-17 18:09:26 -0700
commita95eaa039d562e3de5638200c2c0fbe6538650c9 (patch)
treed3e4af4b54f7a4e715db3db3aaaaece8a58c7377 /kernel
parent21efc6307877147ba7766eb64cabafb77788ea87 (diff)
[PATCH] Decrease stack usage in ncpfs's ioctl
It decreases stack consumption in one of ncpfs's paths from 3000 to 2200 bytes (and stack portion in ncpfs ioctl code from 1336 to 452 bytes). - some code used large structure (with embeded 256 bytes for filename) while it never passed filename around. Use something smaller in ncp_conn_logged_in. Decrease 616 => 300. - gcc-3.3 is very bad when it comes to parallel blocks in ioctl. Split some branches from large switch to separate functions. ncp_ioctl now uses 152 bytes of stack (instead of 720) and biggest child 64. Signed-off-by: Petr Vandrovec <vandrove@vc.cvut.cz> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions