svn commit: r326797 - head/sys/geom/mirror
Mark Johnston
markj at FreeBSD.org
Tue Dec 12 17:25:27 UTC 2017
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) {
More information about the svn-src-all
mailing list