Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 322351
b: refs/heads/master
c: 5986802
h: refs/heads/master
i:
  322349: d5b066e
  322347: a86f898
  322343: ca49cc4
  322335: d4c0110
v: v3
  • Loading branch information
Dan Carpenter authored and Chris Mason committed Aug 28, 2012
1 parent 2bb19a3 commit 7a4725e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: aa2ffd06168e25689e0eb9662bf4595ba2bbac14
refs/heads/master: 5986802c2fcc754040bb7ed95f30bb16c4a843b7
8 changes: 6 additions & 2 deletions trunk/fs/btrfs/qgroup.c
Original file line number Diff line number Diff line change
Expand Up @@ -1369,8 +1369,10 @@ int btrfs_qgroup_inherit(struct btrfs_trans_handle *trans,

if (srcid) {
srcgroup = find_qgroup_rb(fs_info, srcid);
if (!srcgroup)
if (!srcgroup) {
ret = -EINVAL;
goto unlock;
}
dstgroup->rfer = srcgroup->rfer - level_size;
dstgroup->rfer_cmpr = srcgroup->rfer_cmpr - level_size;
srcgroup->excl = level_size;
Expand All @@ -1379,8 +1381,10 @@ int btrfs_qgroup_inherit(struct btrfs_trans_handle *trans,
qgroup_dirty(fs_info, srcgroup);
}

if (!inherit)
if (!inherit) {
ret = -EINVAL;
goto unlock;
}

i_qgroups = (u64 *)(inherit + 1);
for (i = 0; i < inherit->num_qgroups; ++i) {
Expand Down

0 comments on commit 7a4725e

Please sign in to comment.