]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
Call btrfs_cow_block while lowering tree level.
authorYan <yanzheng@21cn.com>
Fri, 1 Feb 2008 19:58:07 +0000 (14:58 -0500)
committerChris Mason <chris.mason@oracle.com>
Thu, 25 Sep 2008 15:04:00 +0000 (11:04 -0400)
commit2f375ab9c55bf22bf77ed9e3082b93e77ea10f55
treec51ceb5867351915e4466ecafbe88b8e8f575d89
parent60cde612c8eb51ba79dabb4088f149c6a9802fdf
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.

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