commit | e8c8541ac379709db8d2339e1cb720469fc2cd8f | [log] [tgz] |
---|---|---|
author | Dongsheng Yang <yangds.fnst@cn.fujitsu.com> | Thu Nov 20 20:58:34 2014 -0500 |
committer | Chris Mason <clm@fb.com> | Mon Apr 13 07:52:40 2015 -0700 |
tree | 1d58f1b000b8057fdbb34514083a464f6e39904b | |
parent | 3eeb4d597efc9e068902057f1bd040cffc69e9e6 [diff] |
btrfs: qgroup: update qgroup in memory at the same time when we update it in btree. When we call btrfs_qgroup_inherit() with BTRFS_QGROUP_INHERIT_SET_LIMITS, btrfs will update the limit info of qgroup in btree but forget to update the qgroup in rbtree at the same time. It obviousely will cause an inconsistency. This patch fix it by updating the rbtree at the same time. Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com> Signed-off-by: Chris Mason <clm@fb.com>