Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 263735
b: refs/heads/master
c: 5b39737
h: refs/heads/master
i:
  263733: 3823e17
  263731: 7b27dea
  263727: 691f239
v: v3
  • Loading branch information
Miao Xie authored and Chris Mason committed Sep 11, 2011
1 parent 5a749cd commit d96ff3f
Show file tree
Hide file tree
Showing 2 changed files with 7 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: 98c9942aca05fff198cd5ca629599cd193444809
refs/heads/master: 5b397377e97d436fc2ed872fc53f85395bb984e0
8 changes: 6 additions & 2 deletions trunk/fs/btrfs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -3510,15 +3510,19 @@ int btrfs_cont_expand(struct inode *inode, loff_t oldsize, loff_t size)
err = btrfs_drop_extents(trans, inode, cur_offset,
cur_offset + hole_size,
&hint_byte, 1);
if (err)
if (err) {
btrfs_end_transaction(trans, root);
break;
}

err = btrfs_insert_file_extent(trans, root,
btrfs_ino(inode), cur_offset, 0,
0, hole_size, 0, hole_size,
0, 0, 0);
if (err)
if (err) {
btrfs_end_transaction(trans, root);
break;
}

btrfs_drop_extent_cache(inode, hole_start,
last_byte - 1, 0);
Expand Down

0 comments on commit d96ff3f

Please sign in to comment.