diff options
Diffstat (limited to 'fs/hpfs')
-rw-r--r-- | fs/hpfs/inode.c | 2 | ||||
-rw-r--r-- | fs/hpfs/super.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/fs/hpfs/inode.c b/fs/hpfs/inode.c index 9edeeb0ea97e..50a427313835 100644 --- a/fs/hpfs/inode.c +++ b/fs/hpfs/inode.c | |||
@@ -304,7 +304,7 @@ void hpfs_write_if_changed(struct inode *inode) | |||
304 | 304 | ||
305 | void hpfs_evict_inode(struct inode *inode) | 305 | void hpfs_evict_inode(struct inode *inode) |
306 | { | 306 | { |
307 | truncate_inode_pages(&inode->i_data, 0); | 307 | truncate_inode_pages_final(&inode->i_data); |
308 | clear_inode(inode); | 308 | clear_inode(inode); |
309 | if (!inode->i_nlink) { | 309 | if (!inode->i_nlink) { |
310 | hpfs_lock(inode->i_sb); | 310 | hpfs_lock(inode->i_sb); |
diff --git a/fs/hpfs/super.c b/fs/hpfs/super.c index 4534ff688b76..fe3463a43236 100644 --- a/fs/hpfs/super.c +++ b/fs/hpfs/super.c | |||
@@ -421,6 +421,8 @@ static int hpfs_remount_fs(struct super_block *s, int *flags, char *data) | |||
421 | struct hpfs_sb_info *sbi = hpfs_sb(s); | 421 | struct hpfs_sb_info *sbi = hpfs_sb(s); |
422 | char *new_opts = kstrdup(data, GFP_KERNEL); | 422 | char *new_opts = kstrdup(data, GFP_KERNEL); |
423 | 423 | ||
424 | sync_filesystem(s); | ||
425 | |||
424 | *flags |= MS_NOATIME; | 426 | *flags |= MS_NOATIME; |
425 | 427 | ||
426 | hpfs_lock(s); | 428 | hpfs_lock(s); |