diff options
Diffstat (limited to 'fs/ext3')
-rw-r--r-- | fs/ext3/inode.c | 2 | ||||
-rw-r--r-- | fs/ext3/super.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/fs/ext3/inode.c b/fs/ext3/inode.c index 77042a2e017c..f5157d0d1b43 100644 --- a/fs/ext3/inode.c +++ b/fs/ext3/inode.c | |||
@@ -228,7 +228,7 @@ void ext3_evict_inode (struct inode *inode) | |||
228 | log_wait_commit(journal, commit_tid); | 228 | log_wait_commit(journal, commit_tid); |
229 | filemap_write_and_wait(&inode->i_data); | 229 | filemap_write_and_wait(&inode->i_data); |
230 | } | 230 | } |
231 | truncate_inode_pages(&inode->i_data, 0); | 231 | truncate_inode_pages_final(&inode->i_data); |
232 | 232 | ||
233 | ext3_discard_reservation(inode); | 233 | ext3_discard_reservation(inode); |
234 | rsv = ei->i_block_alloc_info; | 234 | rsv = ei->i_block_alloc_info; |
diff --git a/fs/ext3/super.c b/fs/ext3/super.c index 94608d4958fe..08cdfe5461e3 100644 --- a/fs/ext3/super.c +++ b/fs/ext3/super.c | |||
@@ -2649,6 +2649,8 @@ static int ext3_remount (struct super_block * sb, int * flags, char * data) | |||
2649 | int i; | 2649 | int i; |
2650 | #endif | 2650 | #endif |
2651 | 2651 | ||
2652 | sync_filesystem(sb); | ||
2653 | |||
2652 | /* Store the original options */ | 2654 | /* Store the original options */ |
2653 | old_sb_flags = sb->s_flags; | 2655 | old_sb_flags = sb->s_flags; |
2654 | old_opts.s_mount_opt = sbi->s_mount_opt; | 2656 | old_opts.s_mount_opt = sbi->s_mount_opt; |