Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 331570
b: refs/heads/master
c: e3d2e43
h: refs/heads/master
v: v3
  • Loading branch information
Ashish Sangwan authored and Theodore Ts'o committed Aug 19, 2012
1 parent 48ebb0a commit cba9d8a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 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: eeecef0af5ea4efd763c9554cf2bd80fc4a0efd3
refs/heads/master: e3d2e433e32a4b7a05818cbc9158037e26c74c8e
4 changes: 0 additions & 4 deletions trunk/fs/ext4/extents.c
Original file line number Diff line number Diff line change
Expand Up @@ -4860,9 +4860,6 @@ int ext4_ext_punch_hole(struct file *file, loff_t offset, loff_t length)
if (IS_ERR(handle))
return PTR_ERR(handle);

err = ext4_orphan_add(handle, inode);
if (err)
goto out;

/*
* Now we need to zero out the non-page-aligned data in the
Expand Down Expand Up @@ -4948,7 +4945,6 @@ int ext4_ext_punch_hole(struct file *file, loff_t offset, loff_t length)
up_write(&EXT4_I(inode)->i_data_sem);

out:
ext4_orphan_del(handle, inode);
inode->i_mtime = inode->i_ctime = ext4_current_time(inode);
ext4_mark_inode_dirty(handle, inode);
ext4_journal_stop(handle);
Expand Down

0 comments on commit cba9d8a

Please sign in to comment.