Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 322353
b: refs/heads/master
c: 55e591f
h: refs/heads/master
i:
  322351: 7a4725e
v: v3
  • Loading branch information
Dan Carpenter authored and Chris Mason committed Aug 28, 2012
1 parent c088bf9 commit 3d88f17
Show file tree
Hide file tree
Showing 2 changed files with 4 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: 57a5a882031dba5cb7bc7ebc955b897498365fe2
refs/heads/master: 55e591ffde38e0088b022129e035e18a8d04c7e6
4 changes: 3 additions & 1 deletion trunk/fs/btrfs/extent-tree.c
Original file line number Diff line number Diff line change
Expand Up @@ -4571,8 +4571,10 @@ int btrfs_delalloc_reserve_metadata(struct inode *inode, u64 num_bytes)
if (root->fs_info->quota_enabled) {
ret = btrfs_qgroup_reserve(root, num_bytes +
nr_extents * root->leafsize);
if (ret)
if (ret) {
mutex_unlock(&BTRFS_I(inode)->delalloc_mutex);
return ret;
}
}

ret = reserve_metadata_bytes(root, block_rsv, to_reserve, flush);
Expand Down

0 comments on commit 3d88f17

Please sign in to comment.