zfs/module
Brian Behlendorf 34229a2f2a Reduce stack usage for recursive 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.
2010-06-29 11:04:26 -07:00
..
avl Update core ZFS code from build 121 to build 141. 2010-05-28 13:45:14 -07:00
nvpair Update core ZFS code from build 121 to build 141. 2010-05-28 13:45:14 -07:00
unicode Add unicode library 2009-01-05 12:03:23 -08:00
zcommon Update core ZFS code from build 121 to build 141. 2010-05-28 13:45:14 -07:00
zfs Reduce stack usage for recursive traverse_visitbp() 2010-06-29 11:04:26 -07:00
.gitignore Add .gitignore files to exclude build products 2010-01-08 11:35:17 -08:00