aboutsummaryrefslogtreecommitdiffstats
path: root/fs/gfs2
diff options
context:
space:
mode:
Diffstat (limited to 'fs/gfs2')
-rw-r--r--fs/gfs2/ops_fstype.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/fs/gfs2/ops_fstype.c b/fs/gfs2/ops_fstype.c
index 9e0e9be1e41d..314c1134d12d 100644
--- a/fs/gfs2/ops_fstype.c
+++ b/fs/gfs2/ops_fstype.c
@@ -887,8 +887,10 @@ error:
887 887
888static void gfs2_kill_sb(struct super_block *sb) 888static void gfs2_kill_sb(struct super_block *sb)
889{ 889{
890 gfs2_delete_debugfs_file(sb->s_fs_info); 890 if (sb->s_fs_info) {
891 gfs2_meta_syncfs(sb->s_fs_info); 891 gfs2_delete_debugfs_file(sb->s_fs_info);
892 gfs2_meta_syncfs(sb->s_fs_info);
893 }
892 kill_block_super(sb); 894 kill_block_super(sb);
893} 895}
894 896