]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - fs/hfsplus/super.c
remove ->write_super call in generic_shutdown_super
[mirror_ubuntu-bionic-kernel.git] / fs / hfsplus / super.c
index f2a64020f42e1ee855c997bb4c0a713ee0c2f4ee..40bdab79dae8a5bb84cd1019dc3fdb46a6d12335 100644 (file)
@@ -199,6 +199,8 @@ static void hfsplus_put_super(struct super_block *sb)
        dprint(DBG_SUPER, "hfsplus_put_super\n");
        if (!sb->s_fs_info)
                return;
+       if (sb->s_dirt)
+               hfsplus_write_super(sb);
        if (!(sb->s_flags & MS_RDONLY) && HFSPLUS_SB(sb).s_vhdr) {
                struct hfsplus_vh *vhdr = HFSPLUS_SB(sb).s_vhdr;