Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 163691
b: refs/heads/master
c: 5534fb5
h: refs/heads/master
i:
  163689: 1b7a878
  163687: 455800f
v: v3
  • Loading branch information
Theodore Ts'o committed Sep 17, 2009
1 parent 37c2abb commit 671eb2d
Show file tree
Hide file tree
Showing 2 changed files with 2 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: fb40ba0d98968bc3454731360363d725b4f1064c
refs/heads/master: 5534fb5bb35a62a94e0bd1fa2421f7fb6e894f10
3 changes: 1 addition & 2 deletions trunk/fs/ext4/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -3973,8 +3973,7 @@ void ext4_truncate(struct inode *inode)
if (!ext4_can_truncate(inode))
return;

if (ei->i_disksize && inode->i_size == 0 &&
!test_opt(inode->i_sb, NO_AUTO_DA_ALLOC))
if (inode->i_size == 0 && !test_opt(inode->i_sb, NO_AUTO_DA_ALLOC))
ei->i_state |= EXT4_STATE_DA_ALLOC_CLOSE;

if (EXT4_I(inode)->i_flags & EXT4_EXTENTS_FL) {
Expand Down

0 comments on commit 671eb2d

Please sign in to comment.