diff options
Diffstat (limited to 'fs/fat')
-rw-r--r-- | fs/fat/inode.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/fs/fat/inode.c b/fs/fat/inode.c index 476f80b175fe..51a5ecf9000a 100644 --- a/fs/fat/inode.c +++ b/fs/fat/inode.c | |||
@@ -449,6 +449,16 @@ static void fat_write_super(struct super_block *sb) | |||
449 | unlock_super(sb); | 449 | unlock_super(sb); |
450 | } | 450 | } |
451 | 451 | ||
452 | static int fat_sync_fs(struct super_block *sb, int wait) | ||
453 | { | ||
454 | lock_super(sb); | ||
455 | fat_clusters_flush(sb); | ||
456 | sb->s_dirt = 0; | ||
457 | unlock_super(sb); | ||
458 | |||
459 | return 0; | ||
460 | } | ||
461 | |||
452 | static void fat_put_super(struct super_block *sb) | 462 | static void fat_put_super(struct super_block *sb) |
453 | { | 463 | { |
454 | struct msdos_sb_info *sbi = MSDOS_SB(sb); | 464 | struct msdos_sb_info *sbi = MSDOS_SB(sb); |
@@ -643,6 +653,7 @@ static const struct super_operations fat_sops = { | |||
643 | .delete_inode = fat_delete_inode, | 653 | .delete_inode = fat_delete_inode, |
644 | .put_super = fat_put_super, | 654 | .put_super = fat_put_super, |
645 | .write_super = fat_write_super, | 655 | .write_super = fat_write_super, |
656 | .sync_fs = fat_sync_fs, | ||
646 | .statfs = fat_statfs, | 657 | .statfs = fat_statfs, |
647 | .clear_inode = fat_clear_inode, | 658 | .clear_inode = fat_clear_inode, |
648 | .remount_fs = fat_remount, | 659 | .remount_fs = fat_remount, |