Btrfs: fix missing check in the btrfs_qgroup_inherit()
authorWang Shilong <wangsl-fnst@cn.fujitsu.com>
Sun, 7 Apr 2013 10:50:19 +0000 (10:50 +0000)
committerJosef Bacik <jbacik@fusionio.com>
Mon, 6 May 2013 19:54:40 +0000 (15:54 -0400)
commit3f5e2d3b3877d34231bbe45856f3b78b7692e472
treebdd3de1a51ab5b4a6529bcc93b30bff39d9d161f
parentb7fef4f593007d52ba7fe4427e099bd71c63c521
Btrfs: fix missing check in the btrfs_qgroup_inherit()

The original code forgot to check 'inherit', we should
gurantee that all the qgroups in the struct 'inherit' exist.

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