btrfs-progs: qgroup: swap the argument in the caller of update_qgroup_relation
commit8eb7e9d43aa96d599a264db748043fa9b9a16f30
authorLu Fengqi <lufq.fnst@cn.fujitsu.com>
Tue, 8 May 2018 05:48:02 +0000 (8 13:48 +0800)
committerDavid Sterba <dsterba@suse.com>
Thu, 7 Jun 2018 14:37:33 +0000 (7 16:37 +0200)
tree736ff163422c3ec120b494bb7a4928ddeaa287e4
parent0ef679720532fe97588c9d77f5a5f981b0150fe3
btrfs-progs: qgroup: swap the argument in the caller of update_qgroup_relation

The QGROUP_RELATION item is very special, it always exists in pairs
(with objectid and offset exchanged). Its objectid and offset are the
ids of a pair of parent and child qgroups, respectively. The larger one
is parent and the smaller one is child. After the following commit, the
order of the parameters is wrong and causes qgroup show to output the
wrong qgroup parent-child relationship.

Fixes: aaf2dac5ef37 ("btrfs-progs: qgroup: split update_qgroup to reduce arguments")
Issue: #129
Signed-off-by: Lu Fengqi <lufq.fnst@cn.fujitsu.com>
Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
qgroup.c