Skip to content

Instantly share code, notes, and snippets.

@benesch
Created May 1, 2015 04:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save benesch/deac87a462a8b79d2089 to your computer and use it in GitHub Desktop.
Save benesch/deac87a462a8b79d2089 to your computer and use it in GitHub Desktop.
diff --git a/kern/fs/sfs/sfs_jphys.c b/kern/fs/sfs/sfs_jphys.c
index 1fe9cac..898cdc2 100644
--- a/kern/fs/sfs/sfs_jphys.c
+++ b/kern/fs/sfs/sfs_jphys.c
@@ -1912,7 +1912,7 @@ sfs_jphys_startwriting(struct sfs_fs *sfs)
jp->jp_writermode = true;
/* start checkpoint daemon */
- /* TODO: start_checkpoint_daemon(sfs); */
+ start_checkpoint_daemon(sfs);
return 0;
}
@@ -1962,12 +1962,11 @@ sfs_jphys_stopwriting(struct sfs_fs *sfs)
KASSERT(jp->jp_writermode);
/* kill checkpoint daemon and manually checkpoint */
- /*
+
kill_checkpoint_daemon();
lock_release(jp->jp_lock);
checkpoint(sfs);
lock_acquire(jp->jp_lock);
- */
/*
* We should have just checkpointed and flushed; there should
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment