Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 297879
b: refs/heads/master
c: e5df957
h: refs/heads/master
i:
  297877: 8f2779c
  297875: 2b52378
  297871: 41e91d3
v: v3
  • Loading branch information
Mark Fasheh authored and David Sterba committed Mar 22, 2012
1 parent e1a5ec4 commit 39ce7d6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 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: 4ed1d16e944c61cfb8a78159548672e7df168d97
refs/heads/master: e5df957328b18baa731307c66cfe8e7a4981df65
6 changes: 5 additions & 1 deletion trunk/fs/btrfs/ctree.c
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,11 @@ static noinline int update_ref_for_cow(struct btrfs_trans_handle *trans,
buf->len, &refs, &flags);
if (ret)
return ret;
BUG_ON(refs == 0);
if (refs == 0) {
ret = -EROFS;
btrfs_std_error(root->fs_info, ret);
return ret;
}
} else {
refs = 1;
if (root->root_key.objectid == BTRFS_TREE_RELOC_OBJECTID ||
Expand Down

0 comments on commit 39ce7d6

Please sign in to comment.