Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 243151
b: refs/heads/master
c: 695a0d0
h: refs/heads/master
i:
  243149: 3e5bf18
  243147: 8f6c8d4
  243143: 5c5fa7b
  243135: 3134de0
v: v3
  • Loading branch information
Josef Bacik committed Mar 17, 2011
1 parent 2ac9cb4 commit e1e98f0
Show file tree
Hide file tree
Showing 2 changed files with 7 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: 930f028abe39dfd0849b53131d19c4b67aacbe67
refs/heads/master: 695a0d0da09e75c4475bbb303def159023ef72ca
6 changes: 6 additions & 0 deletions trunk/fs/btrfs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -3557,6 +3557,12 @@ static int btrfs_truncate_page(struct address_space *mapping, loff_t from)
return ret;
}

/*
* This function puts in dummy file extents for the area we're creating a hole
* for. So if we are truncating this file to a larger size we need to insert
* these file extents so that btrfs_get_extent will return a EXTENT_MAP_HOLE for
* the range between oldsize and size
*/
int btrfs_cont_expand(struct inode *inode, loff_t oldsize, loff_t size)
{
struct btrfs_trans_handle *trans;
Expand Down

0 comments on commit e1e98f0

Please sign in to comment.