skiselkov commented on this pull request.


> +      * On the initial call we memorize if we had to load the metaslab
+        * for ourselves, so we can unload it when we're done.
+        */
+       if (cur == msp->ms_start)
+               *was_loaded = msp->ms_loaded;
+       if (!msp->ms_loaded) {
+               if (metaslab_load(msp) != 0) {
+                       /* Load failed, stop trimming this metaslab */
+                       *cursor = msp->ms_start + msp->ms_size;
+                       mutex_exit(&msp->ms_lock);
+                       return (NULL);
+               }
+       }
+
+       /*
+        * Flush out any scheduled extents and add everything in ms_tree

I'll change it from "Flush out" to "Drop".

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

Reply via email to