]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: qgroup: update qgroup in memory at the same time when we update it in btree.
authorDongsheng Yang <yangds.fnst@cn.fujitsu.com>
Fri, 21 Nov 2014 01:58:34 +0000 (20:58 -0500)
committerChris Mason <clm@fb.com>
Mon, 13 Apr 2015 14:52:40 +0000 (07:52 -0700)
commit54ee0c5c120e79cd3abdcd39e5e5bf67b83539c9
tree1d58f1b000b8057fdbb34514083a464f6e39904b
parent8ecb780e7371e16ca3283982b2c5534f150619b4
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>
fs/btrfs/qgroup.c