]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFV/ZoL: Fix stack dbuf_hold_impl()
authormmacy <mmacy@FreeBSD.org>
Sun, 12 Aug 2018 02:24:18 +0000 (02:24 +0000)
committermmacy <mmacy@FreeBSD.org>
Sun, 12 Aug 2018 02:24:18 +0000 (02:24 +0000)
commit62770aebd31911bed09a4099b5cc867e20101c5b
tree4833e01e4318324bf5e24398cf188588e9b4f578
parent1e157ffa37485ebf7476f245c43fec14c25f850d
MFV/ZoL:     Fix stack dbuf_hold_impl()

commit fc5bb51f08a6c91ff9ad3559d0266eeeab0b1f61
Author: Brian Behlendorf <behlendorf1@llnl.gov>
Date:   Thu Aug 26 10:52:00 2010 -0700

    Fix stack dbuf_hold_impl()

    This commit preserves the recursive function dbuf_hold_impl() 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 technique was based on commit
    34229a2f2ac07363f64ddd63e014964fff2f0671 which reduced stack usage of
    traverse_visitbp().

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dbuf.c