Skip to content

Instantly share code, notes, and snippets.

@coypoop
Last active May 6, 2016 17:51
Show Gist options
  • Save coypoop/ded35f6f09073c16c56720abb84b1e83 to your computer and use it in GitHub Desktop.
Save coypoop/ded35f6f09073c16c56720abb84b1e83 to your computer and use it in GitHub Desktop.
From c23ed9f6b1bbe0d7be4d78eb050c92d864a90b04 Mon Sep 17 00:00:00 2001
From: coypu <coypu@sdf.org>
Date: Fri, 6 May 2016 19:30:01 +0300
Subject: [PATCH 1/1] Explain what is happening better
---
sys/kern/vfs_wapbl.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys/kern/vfs_wapbl.c b/sys/kern/vfs_wapbl.c
index 4fe2616..1981f8a 100644
--- a/sys/kern/vfs_wapbl.c
+++ b/sys/kern/vfs_wapbl.c
@@ -1469,7 +1469,7 @@ wapbl_flush(struct wapbl *wl, int waitfor)
/*
* Now that we are fully locked and flushed,
- * do another check for nothing to do.
+ * check if there is still for nothing to flush,
+ * and truncate everything.
*/
if (wl->wl_bufcount == 0) {
goto out;
--
2.8.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment