Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 263733
b: refs/heads/master
c: 65450aa
h: refs/heads/master
i:
  263731: 7b27dea
v: v3
  • Loading branch information
Liu Bo authored and Chris Mason committed Sep 11, 2011
1 parent b316667 commit 3823e17
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ddf23b3fc6850bd4654d51ec9457fe7c77cde51e
refs/heads/master: 65450aa645b1ef7ed74e41c34b28d53333744978
4 changes: 4 additions & 0 deletions trunk/fs/btrfs/free-space-cache.c
Original file line number Diff line number Diff line change
Expand Up @@ -190,9 +190,11 @@ int btrfs_truncate_free_space_cache(struct btrfs_root *root,
struct btrfs_path *path,
struct inode *inode)
{
struct btrfs_block_rsv *rsv;
loff_t oldsize;
int ret = 0;

rsv = trans->block_rsv;
trans->block_rsv = root->orphan_block_rsv;
ret = btrfs_block_rsv_check(trans, root,
root->orphan_block_rsv,
Expand All @@ -210,6 +212,8 @@ int btrfs_truncate_free_space_cache(struct btrfs_root *root,
*/
ret = btrfs_truncate_inode_items(trans, root, inode,
0, BTRFS_EXTENT_DATA_KEY);

trans->block_rsv = rsv;
if (ret) {
WARN_ON(1);
return ret;
Expand Down

0 comments on commit 3823e17

Please sign in to comment.