summaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/super.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ocfs2/super.c')
-rw-r--r--fs/ocfs2/super.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/fs/ocfs2/super.c b/fs/ocfs2/super.c
index 8b2f39506648..c81e86c62380 100644
--- a/fs/ocfs2/super.c
+++ b/fs/ocfs2/super.c
@@ -1080,10 +1080,8 @@ static int ocfs2_fill_super(struct super_block *sb, void *data, int silent)
1080 osb->osb_debug_root = debugfs_create_dir(osb->uuid_str, 1080 osb->osb_debug_root = debugfs_create_dir(osb->uuid_str,
1081 ocfs2_debugfs_root); 1081 ocfs2_debugfs_root);
1082 1082
1083 osb->osb_ctxt = debugfs_create_file("fs_state", S_IFREG|S_IRUSR, 1083 debugfs_create_file("fs_state", S_IFREG|S_IRUSR, osb->osb_debug_root,
1084 osb->osb_debug_root, 1084 osb, &ocfs2_osb_debug_fops);
1085 osb,
1086 &ocfs2_osb_debug_fops);
1087 1085
1088 if (ocfs2_meta_ecc(osb)) 1086 if (ocfs2_meta_ecc(osb))
1089 ocfs2_blockcheck_stats_debugfs_install( &osb->osb_ecc_stats, 1087 ocfs2_blockcheck_stats_debugfs_install( &osb->osb_ecc_stats,
@@ -1861,8 +1859,6 @@ static void ocfs2_dismount_volume(struct super_block *sb, int mnt_err)
1861 1859
1862 kset_unregister(osb->osb_dev_kset); 1860 kset_unregister(osb->osb_dev_kset);
1863 1861
1864 debugfs_remove(osb->osb_ctxt);
1865
1866 /* Orphan scan should be stopped as early as possible */ 1862 /* Orphan scan should be stopped as early as possible */
1867 ocfs2_orphan_scan_stop(osb); 1863 ocfs2_orphan_scan_stop(osb);
1868 1864
@@ -1918,7 +1914,7 @@ static void ocfs2_dismount_volume(struct super_block *sb, int mnt_err)
1918 ocfs2_dlm_shutdown(osb, hangup_needed); 1914 ocfs2_dlm_shutdown(osb, hangup_needed);
1919 1915
1920 ocfs2_blockcheck_stats_debugfs_remove(&osb->osb_ecc_stats); 1916 ocfs2_blockcheck_stats_debugfs_remove(&osb->osb_ecc_stats);
1921 debugfs_remove(osb->osb_debug_root); 1917 debugfs_remove_recursive(osb->osb_debug_root);
1922 1918
1923 if (hangup_needed) 1919 if (hangup_needed)
1924 ocfs2_cluster_hangup(osb->uuid_str, strlen(osb->uuid_str)); 1920 ocfs2_cluster_hangup(osb->uuid_str, strlen(osb->uuid_str));