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)
commit85d4198e40c289dd623cecd16601fa613559bed7
tree8f76a9567063bded47b69f2f39d557307cdf5b54
parentfd0fb038d5a308c7faddd1701be5e70aaffec98b
Btrfs: check duplicate backrefs for both data and metadata

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>
fs/btrfs/extent-tree.c