commit | 00db646d3fb3f5f62c2327abcf3630f4cc1075ba | [log] [tgz] |
---|---|---|
author | Qu Wenruo <quwenruo@cn.fujitsu.com> | Wed Apr 01 14:39:06 2015 +0800 |
committer | Chris Mason <clm@fb.com> | Wed Jun 10 09:24:59 2015 -0700 |
tree | 6dcc37bf71b946cd6322028f67bf315e83fbd4b7 | |
parent | 20b2e3029eef277cd93a46a991004260057e1a9e [diff] |
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>