Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 274622
b: refs/heads/master
c: 4a33854
h: refs/heads/master
v: v3
  • Loading branch information
Josef Bacik committed Oct 19, 2011
1 parent 615a58a commit 0638d94
Show file tree
Hide file tree
Showing 2 changed files with 3 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: 7f70150896ebd1169d9c43484c8c424f755353c4
refs/heads/master: 4a33854257764c2ec6337ee0c8ecafb64f8e29e1
2 changes: 2 additions & 0 deletions trunk/fs/btrfs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -3561,6 +3561,7 @@ void btrfs_evict_inode(struct inode *inode)
btrfs_orphan_del(NULL, inode);
goto no_delete;
}
rsv->size = min_size;

btrfs_i_size_write(inode, 0);

Expand Down Expand Up @@ -6530,6 +6531,7 @@ static int btrfs_truncate(struct inode *inode)
rsv = btrfs_alloc_block_rsv(root);
if (!rsv)
return -ENOMEM;
rsv->size = min_size;

/*
* 1 for the truncate slack space
Expand Down

0 comments on commit 0638d94

Please sign in to comment.