]> granicus.if.org Git - zfs/commit
Remove recursion from dsl_dir_willuse_space()
authorAndrew Barnes <barnes333@gmail.com>
Mon, 20 Jan 2014 04:39:28 +0000 (15:39 +1100)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 4 Mar 2014 19:22:27 +0000 (11:22 -0800)
commit1ba1615925895ebd49d76d8c6ef8d06717515003
treea3104d1350b82fbf7140521e74efaaa2be32260d
parent0ad85ed91e2e68f0ba377e7c3d2cef45241eeeef
Remove recursion from dsl_dir_willuse_space()

Remove recursion from dsl_dir_willuse_space() to reduce stack usage.
Issues with stack overflow were observed in zfs recv of zvols,
likelihood of an overflow is proportional to the depth of the dataset
as dsl_dir_willuse_space() recurses to parent datasets.

Signed-off-by: Andrew Barnes <barnes333@gmail.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #2069
module/zfs/dsl_dir.c