Check duplicate backrefs for both data and metadata
authorYan Zheng <zheng.yan@oracle.com>
Thu, 11 Jun 2009 13:27:31 +0000 (09:27 -0400)
committerChris Mason <chris.mason@oracle.com>
Thu, 11 Jun 2009 13:27:37 +0000 (09:27 -0400)
commit0e3c5d410ff0598d3311304983756aa6194724e9
treeef8d039bf869fecb3b3fc3f79df85522fc935ac0
parent0030f1d3aead310aa3a1d951311d47b3a819716b
Check duplicate backrefs for both data and metadata

lookup_inline_extent_backref only checks for duplicate backref for data extent.
It assumes backrefs for tree block never conflict.  This patch makes
lookup_inline_extent_backref check duplicate backrefs for both data and tree
block, so that we can detect potential bug earlier.

Signed-off-by: Yan Zheng <zheng.yan@oracle.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
extent-tree.c