aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext3/inode.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ext3/inode.c')
-rw-r--r--fs/ext3/inode.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/ext3/inode.c b/fs/ext3/inode.c
index 5fa453b49a64..0f5bca0d82fc 100644
--- a/fs/ext3/inode.c
+++ b/fs/ext3/inode.c
@@ -2346,6 +2346,9 @@ void ext3_truncate(struct inode *inode)
2346 if (!ext3_can_truncate(inode)) 2346 if (!ext3_can_truncate(inode))
2347 return; 2347 return;
2348 2348
2349 if (inode->i_size == 0 && ext3_should_writeback_data(inode))
2350 ei->i_state |= EXT3_STATE_FLUSH_ON_CLOSE;
2351
2349 /* 2352 /*
2350 * We have to lock the EOF page here, because lock_page() nests 2353 * We have to lock the EOF page here, because lock_page() nests
2351 * outside journal_start(). 2354 * outside journal_start().