btrfs-progs: lowmem check: Fix false alert about referencer count mismatch
authorLu Fengqi <lufq.fnst@cn.fujitsu.com>
Fri, 3 Nov 2017 08:28:05 +0000 (16:28 +0800)
committerDavid Sterba <dsterba@suse.com>
Tue, 14 Nov 2017 14:59:01 +0000 (15:59 +0100)
commit29379da543da18f40f0a780bd61823316968607c
tree0ae93881ac664d1631e82a40c92d85e6ea4e145f
parentfaaf70f1cc7ade1d6d5a41a900a3b58cc4bd5f58
btrfs-progs: lowmem check: Fix false alert about referencer count mismatch

The normal back reference counting doesn't care about the extent referred
by the extent data in the shared leaf. The check_extent_data_backref
function need to skip the leaf that owner mismatch with the root_id.

Reported-by: Marc MERLIN <marc@merlins.org>
Signed-off-by: Lu Fengqi <lufq.fnst@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.com>
cmds-check.c