mirror_zfs/module
Brian Behlendorf 6656bf5621 Fix stack traverse_visitbp()
Due to  limited stack space recursive functions are frowned upon in
the Linux kernel.  However, they often are the most elegant solution
to a problem.  The following code preserves the recursive function
traverse_visitbp() but moves the local variables AND function
arguments to the heap to minimize the stack frame size.  Enough
space is initially allocated on the stack for 20 levels of recursion.
This change does ugly-up-the-code but it reduces the worst case
usage from roughly 4160 bytes to 960 bytes on x86_64 archs.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
2010-08-31 08:38:50 -07:00
..
avl Fix gcc ident pragma warnings 2010-08-27 15:34:02 -07:00
nvpair Fix gcc uninitialized variable warnings 2010-08-31 08:38:43 -07:00
unicode Fix gcc missing parenthesis warnings 2010-08-31 08:38:35 -07:00
zcommon Fix gcc missing parenthesis warnings 2010-08-31 08:38:35 -07:00
zfs Fix stack traverse_visitbp() 2010-08-31 08:38:50 -07:00
.gitignore Add .gitignore files to exclude build products 2010-01-08 11:35:17 -08:00