Btrfs: check duplicate backrefs for both data and metadata
authorYan Zheng <zheng.yan@oracle.com>
Thu, 11 Jun 2009 12:51:10 +0000 (08:51 -0400)
committerChris Mason <chris.mason@oracle.com>
Thu, 11 Jun 2009 12:51:34 +0000 (08:51 -0400)
lookup_inline_extent_backref only checks for duplicate backref for data
extents. It assumes backrefs for tree block never conflict.

This patch makes lookup_inline_extent_backref check for duplicate backrefs
for both data and tree block, so that we can detect potential bug earlier.
This is a safety check, strictly speaking it is not required.

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

No differences found