History

Revert "Btrfs: fix some error codes in btrfs_qgroup_inherit()"

This reverts commit 5986802c2fcc754040bb7ed95f30bb16c4a843b7. Both paths are not error paths but regular cases where non-qgroup subvols are involved.

Chris Mason committed 14 years ago

Commit f3a87f11 parent 256dd1b1 file · +2 −6Browse files

Unified · Split

fs/btrfs/qgroup.c+2−6
@@ -1371,10 +1371,8 @@ int btrfs_qgroup_inherit(struct btrfs_trans_handle *trans, · 1370 unmodified lines
13711371
13721372 if (srcid) {
13731373 srcgroup = find_qgroup_rb(fs_info, srcid);
1374− if (!srcgroup) {
1375− ret = -EINVAL;
1374+ if (!srcgroup)
13761375 goto unlock;
1377− }
13781376 dstgroup->rfer = srcgroup->rfer - level_size;
13791377 dstgroup->rfer_cmpr = srcgroup->rfer_cmpr - level_size;
13801378 srcgroup->excl = level_size;
@@ -1383,10 +1381,8 @@ int btrfs_qgroup_inherit(struct btrfs_trans_handle *trans, · 2 unmodified lines
13831381 qgroup_dirty(fs_info, srcgroup);
13841382 }
13851383
1386− if (!inherit) {
1387− ret = -EINVAL;
1384+ if (!inherit)
13881385 goto unlock;
1389− }
13901386
13911387 i_qgroups = (u64 *)(inherit + 1);
13921388 for (i = 0; i < inherit->num_qgroups; ++i) {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t