Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 346719
b: refs/heads/master
c: 0ff6fab
h: refs/heads/master
i:
  346717: 8fc3fe8
  346715: 59ce0b9
  346711: 6f00df1
  346703: a8bdc95
  346687: bd58ddf
v: v3
  • Loading branch information
Miao Xie authored and Chris Mason committed Dec 17, 2012
1 parent e8c99b5 commit bd956ad
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: 797f4277113bff142b6c64a55abaef64d7d67d5c
refs/heads/master: 0ff6fabdb0a862b22df4dd75873578392478e64d
4 changes: 2 additions & 2 deletions trunk/fs/btrfs/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -2072,7 +2072,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, alloc_end - alloc_start + 1);
ret = btrfs_check_data_free_space(inode, alloc_end - alloc_start);
if (ret)
return ret;

Expand Down Expand Up @@ -2179,7 +2179,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, alloc_end - alloc_start + 1);
btrfs_free_reserved_data_space(inode, alloc_end - alloc_start);
return ret;
}

Expand Down

0 comments on commit bd956ad

Please sign in to comment.