Call btrfs_cow_block while lowering tree level.
commitece29db27976fb78f0294ebe69a2b50161cc98a3
authorYan <yanzheng@21cn.com>
Fri, 1 Feb 2008 19:58:07 +0000 (1 14:58 -0500)
committerDavid Woodhouse <dwmw2@hera.kernel.org>
Fri, 1 Feb 2008 19:58:07 +0000 (1 14:58 -0500)
tree72218ba7b1b1be95cb07774d2553b0b638c49187
parentd2255c7c2f20bc5fc953317d851da8e38da92563
Call btrfs_cow_block while lowering tree level.

When freeing root block of a tree,  btrfs_free_extent' parameter
'ref_generation' is from root block itseft.  When freeing non-root
block,  'ref_generation' is from its parent. so when converting a
non-root block to root block, we must guarantee its generation is
equal to its parent's generation.
ctree.c