Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 260901
b: refs/heads/master
c: 75c195a
h: refs/heads/master
i:
  260899: 93cac23
v: v3
  • Loading branch information
Chris Mason committed Jul 27, 2011
1 parent ed71b60 commit 0a6cadb
Show file tree
Hide file tree
Showing 2 changed files with 7 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: 2cf8572dac62cc2ff7e995173e95b6c694401b3f
refs/heads/master: 75c195a2cac2c3c8366c0b87de2d6814c4f4d638
7 changes: 6 additions & 1 deletion trunk/fs/btrfs/extent-tree.c
Original file line number Diff line number Diff line change
Expand Up @@ -3474,6 +3474,8 @@ static int reserve_metadata_bytes(struct btrfs_trans_handle *trans,
if (ret < 0)
goto out;

ret = 0;

/*
* So if we were overcommitted it's possible that somebody else flushed
* out enough space and we simply didn't have enough space to reclaim,
Expand All @@ -3496,10 +3498,13 @@ static int reserve_metadata_bytes(struct btrfs_trans_handle *trans,
goto out;

ret = -EAGAIN;
if (trans || committed)
if (trans)
goto out;

ret = -ENOSPC;
if (committed)
goto out;

trans = btrfs_join_transaction(root);
if (IS_ERR(trans))
goto out;
Expand Down

0 comments on commit 0a6cadb

Please sign in to comment.