forked from Minki/linux
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mason/linux-btrfs
Pull a btrfs revert from Chris Mason: "My for-linus branch has one revert in the new quota code. We're building up more fixes at etc for the next merge window, but I'm keeping them out unless they are bigger regressions or have a huge impact." * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mason/linux-btrfs: Revert "Btrfs: fix some error codes in btrfs_qgroup_inherit()"
This commit is contained in:
commit
6167f81fd1
@ -1371,10 +1371,8 @@ int btrfs_qgroup_inherit(struct btrfs_trans_handle *trans,
|
|||||||
|
|
||||||
if (srcid) {
|
if (srcid) {
|
||||||
srcgroup = find_qgroup_rb(fs_info, srcid);
|
srcgroup = find_qgroup_rb(fs_info, srcid);
|
||||||
if (!srcgroup) {
|
if (!srcgroup)
|
||||||
ret = -EINVAL;
|
|
||||||
goto unlock;
|
goto unlock;
|
||||||
}
|
|
||||||
dstgroup->rfer = srcgroup->rfer - level_size;
|
dstgroup->rfer = srcgroup->rfer - level_size;
|
||||||
dstgroup->rfer_cmpr = srcgroup->rfer_cmpr - level_size;
|
dstgroup->rfer_cmpr = srcgroup->rfer_cmpr - level_size;
|
||||||
srcgroup->excl = level_size;
|
srcgroup->excl = level_size;
|
||||||
@ -1383,10 +1381,8 @@ int btrfs_qgroup_inherit(struct btrfs_trans_handle *trans,
|
|||||||
qgroup_dirty(fs_info, srcgroup);
|
qgroup_dirty(fs_info, srcgroup);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!inherit) {
|
if (!inherit)
|
||||||
ret = -EINVAL;
|
|
||||||
goto unlock;
|
goto unlock;
|
||||||
}
|
|
||||||
|
|
||||||
i_qgroups = (u64 *)(inherit + 1);
|
i_qgroups = (u64 *)(inherit + 1);
|
||||||
for (i = 0; i < inherit->num_qgroups; ++i) {
|
for (i = 0; i < inherit->num_qgroups; ++i) {
|
||||||
|
Loading…
Reference in New Issue
Block a user