]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: backref: Don't merge refs which are not for same block.
authorQu Wenruo <quwenruo@cn.fujitsu.com>
Wed, 1 Apr 2015 06:39:06 +0000 (14:39 +0800)
committerChris Mason <clm@fb.com>
Wed, 10 Jun 2015 16:24:59 +0000 (09:24 -0700)
commitdc1563b2d9430c6960bccb032df3cb5d0cebca55
tree6dcc37bf71b946cd6322028f67bf315e83fbd4b7
parent3cbd8395804bc0b811a320afde879d58819e9012
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 <quwenruo@cn.fujitsu.com>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/backref.c