Btrfs: reduce stack usage in some crucial tree balancing functions
authorChris Mason <chris.mason@oracle.com>
Fri, 13 Mar 2009 14:04:31 +0000 (10:04 -0400)
committerChris Mason <chris.mason@oracle.com>
Tue, 24 Mar 2009 20:14:25 +0000 (16:14 -0400)
commit44871b1b24b593996db43495cf4484cc580bdc10
treeb1b56f48e76006662798508f20c2b2d1378fd04f
parent56bec294dea971335d4466b30f2d959f28f6e36d
Btrfs: reduce stack usage in some crucial tree balancing functions

Many of the tree balancing functions follow the same pattern.

1) cow a block
2) do something to the result

This commit breaks them up into two functions so the variables and
code required for part two don't suck down stack during part one.

Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/ctree.c