skiselkov commented on this pull request.


> +      * Flush out any scheduled extents and add everything in ms_tree
+        * from the last cursor position, but not more than the trim run
+        * limit.
+        */
+       range_tree_vacate(msp->ms_cur_ts, NULL, NULL);
+
+       rsearch.rs_start = cur;
+       rsearch.rs_end = cur + SPA_MINBLOCKSIZE;
+       rs = avl_find(&msp->ms_tree->rt_root, &rsearch, &where);
+       if (rs == NULL) {
+               rs = avl_nearest(&msp->ms_tree->rt_root, where, AVL_AFTER);
+               if (rs != NULL)
+                       cur = rs->rs_start;
+       }
+
+       /* Clear out ms_prev_ts, since we'll be trimming everything. */

Moving.

-- 
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_r114456198
------------------------------------------
openzfs-developer
Archives: https://openzfs.topicbox-beta.com/groups/developer/
Powered by Topicbox: https://topicbox-beta.com

Reply via email to