Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 360497
b: refs/heads/master
c: 84cbe2f
h: refs/heads/master
i:
  360495: 62bb13a
v: v3
  • Loading branch information
Wang Shilong authored and Josef Bacik committed Mar 1, 2013
1 parent c70f83d commit 9d09e10
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 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: 06b3a860dcf596bdc2bb1cca3252d3907b581938
refs/heads/master: 84cbe2f725f59b72fffb48ab7161e771eeee5103
12 changes: 9 additions & 3 deletions trunk/fs/btrfs/qgroup.c
Original file line number Diff line number Diff line change
Expand Up @@ -620,7 +620,9 @@ static int update_qgroup_limit_item(struct btrfs_trans_handle *trans,
key.offset = qgroupid;

path = btrfs_alloc_path();
BUG_ON(!path);
if (!path)
return -ENOMEM;

ret = btrfs_search_slot(trans, root, &key, path, 0, 1);
if (ret > 0)
ret = -ENOENT;
Expand Down Expand Up @@ -661,7 +663,9 @@ static int update_qgroup_info_item(struct btrfs_trans_handle *trans,
key.offset = qgroup->qgroupid;

path = btrfs_alloc_path();
BUG_ON(!path);
if (!path)
return -ENOMEM;

ret = btrfs_search_slot(trans, root, &key, path, 0, 1);
if (ret > 0)
ret = -ENOENT;
Expand Down Expand Up @@ -702,7 +706,9 @@ static int update_qgroup_status_item(struct btrfs_trans_handle *trans,
key.offset = 0;

path = btrfs_alloc_path();
BUG_ON(!path);
if (!path)
return -ENOMEM;

ret = btrfs_search_slot(trans, root, &key, path, 0, 1);
if (ret > 0)
ret = -ENOENT;
Expand Down

0 comments on commit 9d09e10

Please sign in to comment.