diff options
Diffstat (limited to 'fs/fat/inode.c')
-rw-r--r-- | fs/fat/inode.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/fs/fat/inode.c b/fs/fat/inode.c index a0f9b9fe1307..897312616b0a 100644 --- a/fs/fat/inode.c +++ b/fs/fat/inode.c | |||
@@ -374,12 +374,17 @@ static void fat_clear_inode(struct inode *inode) | |||
374 | unlock_kernel(); | 374 | unlock_kernel(); |
375 | } | 375 | } |
376 | 376 | ||
377 | static void fat_put_super(struct super_block *sb) | 377 | static void fat_write_super(struct super_block *sb) |
378 | { | 378 | { |
379 | struct msdos_sb_info *sbi = MSDOS_SB(sb); | 379 | sb->s_dirt = 0; |
380 | 380 | ||
381 | if (!(sb->s_flags & MS_RDONLY)) | 381 | if (!(sb->s_flags & MS_RDONLY)) |
382 | fat_clusters_flush(sb); | 382 | fat_clusters_flush(sb); |
383 | } | ||
384 | |||
385 | static void fat_put_super(struct super_block *sb) | ||
386 | { | ||
387 | struct msdos_sb_info *sbi = MSDOS_SB(sb); | ||
383 | 388 | ||
384 | if (sbi->nls_disk) { | 389 | if (sbi->nls_disk) { |
385 | unload_nls(sbi->nls_disk); | 390 | unload_nls(sbi->nls_disk); |
@@ -546,6 +551,7 @@ static struct super_operations fat_sops = { | |||
546 | .write_inode = fat_write_inode, | 551 | .write_inode = fat_write_inode, |
547 | .delete_inode = fat_delete_inode, | 552 | .delete_inode = fat_delete_inode, |
548 | .put_super = fat_put_super, | 553 | .put_super = fat_put_super, |
554 | .write_super = fat_write_super, | ||
549 | .statfs = fat_statfs, | 555 | .statfs = fat_statfs, |
550 | .clear_inode = fat_clear_inode, | 556 | .clear_inode = fat_clear_inode, |
551 | .remount_fs = fat_remount, | 557 | .remount_fs = fat_remount, |