Author: markj
Date: Tue Dec 12 17:25:25 2017
New Revision: 326797
URL: https://svnweb.freebsd.org/changeset/base/326797

Log:
  Give g_mirror_event_get() a more accurate name.
  
  MFC after:    1 week
  Sponsored by: Dell EMC Isilon

Modified:
  head/sys/geom/mirror/g_mirror.c

Modified: head/sys/geom/mirror/g_mirror.c
==============================================================================
--- head/sys/geom/mirror/g_mirror.c     Tue Dec 12 17:24:30 2017        
(r326796)
+++ head/sys/geom/mirror/g_mirror.c     Tue Dec 12 17:25:25 2017        
(r326797)
@@ -219,7 +219,7 @@ g_mirror_event_send(void *arg, int state, int flags)
 }
 
 static struct g_mirror_event *
-g_mirror_event_get(struct g_mirror_softc *sc)
+g_mirror_event_first(struct g_mirror_softc *sc)
 {
        struct g_mirror_event *ep;
 
@@ -555,7 +555,7 @@ g_mirror_destroy_device(struct g_mirror_softc *sc)
                g_mirror_update_metadata(disk);
                g_mirror_destroy_disk(disk);
        }
-       while ((ep = g_mirror_event_get(sc)) != NULL) {
+       while ((ep = g_mirror_event_first(sc)) != NULL) {
                g_mirror_event_remove(sc, ep);
                if ((ep->e_flags & G_MIRROR_EVENT_DONTWAIT) != 0)
                        g_mirror_event_free(ep);
@@ -1877,7 +1877,7 @@ g_mirror_worker(void *arg)
                 * First take a look at events.
                 * This is important to handle events before any I/O requests.
                 */
-               ep = g_mirror_event_get(sc);
+               ep = g_mirror_event_first(sc);
                if (ep != NULL) {
                        g_mirror_event_remove(sc, ep);
                        if ((ep->e_flags & G_MIRROR_EVENT_DEVICE) != 0) {
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to