Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 346670
b: refs/heads/master
c: e1f5790
h: refs/heads/master
v: v3
  • Loading branch information
Tsutomu Itoh authored and Josef Bacik committed Dec 12, 2012
1 parent 977329e commit 3fa2083
Show file tree
Hide file tree
Showing 2 changed files with 4 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: d03f918ab9036cc71740c0aa796c8e02e6f6f6d3
refs/heads/master: e1f5790e0588bc5b11eb57f95bfde8702049dd0d
3 changes: 3 additions & 0 deletions trunk/fs/btrfs/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -1964,6 +1964,9 @@ static int btrfs_punch_hole(struct inode *inode, loff_t offset, loff_t len)
if (!trans)
goto out_free;

inode_inc_iversion(inode);
inode->i_mtime = inode->i_ctime = CURRENT_TIME;

trans->block_rsv = &root->fs_info->trans_block_rsv;
ret = btrfs_update_inode(trans, root, inode);
nr = trans->blocks_used;
Expand Down

0 comments on commit 3fa2083

Please sign in to comment.