Btrfs: use tree_root to avoid edquot when disabling quota
authorWang Shilong <wangsl-fnst@cn.fujitsu.com>
Mon, 8 Apr 2013 10:56:22 +0000 (10:56 +0000)
committerJosef Bacik <jbacik@fusionio.com>
Mon, 6 May 2013 19:54:41 +0000 (15:54 -0400)
commit92f183aa5b8a8655431583e4c53e80fa3e0070e5
treeb46918ae6c8d1ab626c804603d11abc5e9628548
parentddb47afa50f2f2713ef28d22380d3bf8fae648db
Btrfs: use tree_root to avoid edquot when disabling quota

Steps to reproduce:
mkfs.btrfs <disk>
mount <disk> <mnt>
btrfs quota enable <mnt>
btrfs sub create <mnt>/subv
btrfs qgroup limit 10K <mnt>/subv
btrfs quota disable <mnt>/subv

It is wrong for qgroup to reserve when disabling quota,
so just use tree_root to avoid edquot when disabling quota.

Signed-off-by: Wang Shilong <wangsl-fnst@cn.fujitsu.com>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
fs/btrfs/ioctl.c