Skip to content
Commit 00db646d authored by Qu Wenruo's avatar Qu Wenruo Committed by Chris Mason
Browse files

btrfs: backref: Don't merge refs which are not for same block.



Old __merge_refs() in backref.c will even merge refs whose root_id are
different, which makes qgroup gives wrong result.

Fix it by checking ref_for_same_block() before any mode specific works.

Signed-off-by: default avatarQu Wenruo <quwenruo@cn.fujitsu.com>
Signed-off-by: default avatarChris Mason <clm@fb.com>
parent 20b2e302
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment