aboutsummaryrefslogtreecommitdiffstats
path: root/fs/fat
diff options
context:
space:
mode:
Diffstat (limited to 'fs/fat')
-rw-r--r--fs/fat/inode.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/fat/inode.c b/fs/fat/inode.c
index 296785a0dec8..4978621511bf 100644
--- a/fs/fat/inode.c
+++ b/fs/fat/inode.c
@@ -451,6 +451,9 @@ static void fat_put_super(struct super_block *sb)
451{ 451{
452 struct msdos_sb_info *sbi = MSDOS_SB(sb); 452 struct msdos_sb_info *sbi = MSDOS_SB(sb);
453 453
454 if (sb->s_dirt)
455 fat_write_super(sb);
456
454 if (sbi->nls_disk) { 457 if (sbi->nls_disk) {
455 unload_nls(sbi->nls_disk); 458 unload_nls(sbi->nls_disk);
456 sbi->nls_disk = NULL; 459 sbi->nls_disk = NULL;