aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/super.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ocfs2/super.c')
-rw-r--r--fs/ocfs2/super.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/fs/ocfs2/super.c b/fs/ocfs2/super.c
index 79ff8d9d37e0..44ac27e2d1f5 100644
--- a/fs/ocfs2/super.c
+++ b/fs/ocfs2/super.c
@@ -1802,6 +1802,8 @@ static void ocfs2_dismount_volume(struct super_block *sb, int mnt_err)
1802 1802
1803 ocfs2_truncate_log_shutdown(osb); 1803 ocfs2_truncate_log_shutdown(osb);
1804 1804
1805 ocfs2_orphan_scan_stop(osb);
1806
1805 /* This will disable recovery and flush any recovery work. */ 1807 /* This will disable recovery and flush any recovery work. */
1806 ocfs2_recovery_exit(osb); 1808 ocfs2_recovery_exit(osb);
1807 1809
@@ -1957,6 +1959,13 @@ static int ocfs2_initialize_super(struct super_block *sb,
1957 goto bail; 1959 goto bail;
1958 } 1960 }
1959 1961
1962 status = ocfs2_orphan_scan_init(osb);
1963 if (status) {
1964 mlog(ML_ERROR, "Unable to initialize delayed orphan scan\n");
1965 mlog_errno(status);
1966 goto bail;
1967 }
1968
1960 init_waitqueue_head(&osb->checkpoint_event); 1969 init_waitqueue_head(&osb->checkpoint_event);
1961 atomic_set(&osb->needs_checkpoint, 0); 1970 atomic_set(&osb->needs_checkpoint, 0);
1962 1971