From: Yan Zheng Date: Sun, 28 Jun 2009 01:07:35 +0000 (-0400) Subject: Btrfs: update backrefs while dropping snapshot X-Git-Tag: v2.6.31-rc2~10^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2c47e605a91dde6b0514f689645e7ab336c8592a;p=pandora-kernel.git Btrfs: update backrefs while dropping snapshot The new backref format has restriction on type of backref item. If a tree block isn't referenced by its owner tree, full backrefs must be used for the pointers in it. When a tree block loses its owner tree's reference, backrefs for the pointers in it should be updated to full backrefs. Current btrfs_drop_snapshot misses the code that updates backrefs, so it's unsafe for general use. This patch adds backrefs update code to btrfs_drop_snapshot. It isn't a problem in the restricted form btrfs_drop_snapshot is used today, but for general snapshot deletion this update is required. Signed-off-by: Yan Zheng Signed-off-by: Chris Mason --- Reading git-diff-tree failed