]> git.hungrycats.org Git - linux/commit
btrfs: quota: Update quota tree after qgroup relationship change.
authorQu Wenruo <quwenruo@cn.fujitsu.com>
Fri, 27 Feb 2015 08:24:28 +0000 (16:24 +0800)
committerZygo Blaxell <zblaxell@serenity.furryterror.org>
Fri, 17 Apr 2015 16:01:16 +0000 (12:01 -0400)
commit4f3a6aed8b98b4207af87818bc0f2cadc689e321
treee7ed6dd02c1a68f59cacfe32f3dbc4d15274bea8
parent5e926fe56eae8877d2aba3f39fe93a0c594bc356
btrfs: quota: Update quota tree after qgroup relationship change.

Previous patch modified the in memory struct but it's not written in
quota tree until next commit.
So user will still get old data using "btrfs qgroup show" after
assign/remove.

This patch will call btrfs_run_qgroups in assign ioctl so it will be
updated to in memory quota trees and user will get up-to-date results.

Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com>
Reviewed-by: Josef Bacik <jbacik@fb.com>
Signed-off-by: Chris Mason <clm@fb.com>
(cherry picked from commit e082f56313f374d723b0366978ddb062c8fe79ea)
fs/btrfs/ioctl.c