]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: qgroup: return EINVAL if level of parent is not higher than child's.
authorDongsheng Yang <yangds.fnst@cn.fujitsu.com>
Tue, 11 Nov 2014 12:18:22 +0000 (07:18 -0500)
committerChris Mason <clm@fb.com>
Mon, 13 Apr 2015 14:52:51 +0000 (07:52 -0700)
commit7990cada7c1c28e2a71e983ac6de12b005038c37
tree165d3cbb7ab0be6a0c1ae1120658b31a8ad39f2b
parentb6d31a0f47d2e8d24e3a1adbaf5f800b5c872778
btrfs: qgroup: return EINVAL if level of parent is not higher than child's.

When we create a subvol inheriting a qgroup, we need to check the level
of them. Otherwise, there is a chance a qgroup can inherit another qgroup
at the same level.

Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/qgroup.c