Conserve stack in dsl_scan_visitbp()
authorBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 26 Apr 2011 22:43:07 +0000 (15:43 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 26 Apr 2011 22:48:00 +0000 (15:48 -0700)
commitb81c4ac9af4f9e8b8c27d8011e3ce608cd04737b
tree20d98f91ecb421b9c30e7d38bec93735ef290bc3
parent7a060636b05655cccd87ce74d70e5957bb234e5e
Conserve stack in dsl_scan_visitbp()

This function is called recursively so everything possible must be
done to limit its stack consumption.  The dprintf_bp() debugging
function adds 30 bytes of local variables to the function we cannot
afford.  By commenting out this debugging we save 30 bytes per
recursion and depths of 13 are not uncommon.  This yeilds a total
stack saving of 390 bytes on our 8k stack.

Issue #174
module/zfs/dsl_scan.c