skiselkov commented on this pull request.
> }
spa_config_exit(spa, SCL_VDEV, FTAG);
}
+
+/*
+ * Trims all free space in the metaslab. Returns the root TRIM zio (that the
+ * caller should zio_wait() for) and the amount of space in the metaslab that
+ * has been scheduled for trimming in the `delta' return argument.
+ */
+zio_t *
+metaslab_trim_all(metaslab_t *msp, uint64_t *cursor, uint64_t *delta,
+ boolean_t *was_loaded)
+{
+ uint64_t cur = *cursor, trimmed_space = 0;
+ zio_t *trim_io = NULL;
+ range_seg_t rsearch, *rs;
Will do. I was just copying the style used in some parts of range_tree.c, so I
thought it was ok.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openzfs/openzfs/pull/172#discussion_r114455508
------------------------------------------
openzfs-developer
Archives: https://openzfs.topicbox.com/groups/developer/
Powered by Topicbox: https://topicbox.com