Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 332546
b: refs/heads/master
c: 903889f
h: refs/heads/master
v: v3
  • Loading branch information
Miao Xie authored and Chris Mason committed Oct 1, 2012
1 parent 5bb04d1 commit 81269a8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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: 69ce977a179750915e04fcc12bfbe33e6c8f5132
refs/heads/master: 903889f462409c816893abd02d88636f7b4a7774
4 changes: 2 additions & 2 deletions trunk/fs/btrfs/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -2000,7 +2000,7 @@ static long btrfs_fallocate(struct file *file, int mode,
* Make sure we have enough space before we do the
* allocation.
*/
ret = btrfs_check_data_free_space(inode, len);
ret = btrfs_check_data_free_space(inode, alloc_end - alloc_start + 1);
if (ret)
return ret;

Expand Down Expand Up @@ -2107,7 +2107,7 @@ static long btrfs_fallocate(struct file *file, int mode,
out:
mutex_unlock(&inode->i_mutex);
/* Let go of our reservation. */
btrfs_free_reserved_data_space(inode, len);
btrfs_free_reserved_data_space(inode, alloc_end - alloc_start + 1);
return ret;
}

Expand Down

0 comments on commit 81269a8

Please sign in to comment.