From: Qu Wenruo Date: Wed, 1 Apr 2015 06:39:06 +0000 (+0800) Subject: btrfs: backref: Don't merge refs which are not for same block. X-Git-Tag: omap-for-v4.2/fixes-rc1^2~69^2~22 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=00db646d3fb3f5f62c2327abcf3630f4cc1075ba;p=pandora-kernel.git 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: Qu Wenruo Signed-off-by: Chris Mason --- Reading git-diff-tree failed