diff options
Diffstat (limited to 'fs/ext4/super.c')
-rw-r--r-- | fs/ext4/super.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/ext4/super.c b/fs/ext4/super.c index f016707597a..c7b8f8d9b7a 100644 --- a/fs/ext4/super.c +++ b/fs/ext4/super.c | |||
@@ -576,6 +576,9 @@ static void ext4_put_super(struct super_block *sb) | |||
576 | struct ext4_super_block *es = sbi->s_es; | 576 | struct ext4_super_block *es = sbi->s_es; |
577 | int i, err; | 577 | int i, err; |
578 | 578 | ||
579 | if (sb->s_dirt) | ||
580 | ext4_write_super(sb); | ||
581 | |||
579 | ext4_release_system_zone(sb); | 582 | ext4_release_system_zone(sb); |
580 | ext4_mb_release(sb); | 583 | ext4_mb_release(sb); |
581 | ext4_ext_release(sb); | 584 | ext4_ext_release(sb); |