Module Name:    src
Committed By:   christos
Date:           Sat Nov 23 14:50:40 UTC 2013

Modified Files:
        src/sys/uvm: uvm_swap.c

Log Message:
fix circleq comments


To generate a diff of this commit:
cvs rdiff -u -r1.164 -r1.165 src/sys/uvm/uvm_swap.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/uvm/uvm_swap.c
diff -u src/sys/uvm/uvm_swap.c:1.164 src/sys/uvm/uvm_swap.c:1.165
--- src/sys/uvm/uvm_swap.c:1.164	Sat Nov 23 09:32:13 2013
+++ src/sys/uvm/uvm_swap.c	Sat Nov 23 09:50:40 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: uvm_swap.c,v 1.164 2013/11/23 14:32:13 christos Exp $	*/
+/*	$NetBSD: uvm_swap.c,v 1.165 2013/11/23 14:50:40 christos Exp $	*/
 
 /*
  * Copyright (c) 1995, 1996, 1997, 2009 Matthew R. Green
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_swap.c,v 1.164 2013/11/23 14:32:13 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_swap.c,v 1.165 2013/11/23 14:50:40 christos Exp $");
 
 #include "opt_uvmhist.h"
 #include "opt_compat_netbsd.h"
@@ -136,7 +136,7 @@ struct swapdev {
 	int			swd_drumsize;	/* #pages in drum */
 	blist_t			swd_blist;	/* blist for this swapdev */
 	struct vnode		*swd_vp;	/* backing vnode */
-	TAILQ_ENTRY(swapdev)	swd_next;	/* priority circleq */
+	TAILQ_ENTRY(swapdev)	swd_next;	/* priority tailq */
 
 	int			swd_bsize;	/* blocksize (bytes) */
 	int			swd_maxactive;	/* max active i/o reqs */
@@ -150,7 +150,7 @@ struct swapdev {
 struct swappri {
 	int			spi_priority;     /* priority */
 	TAILQ_HEAD(spi_swapdev, swapdev)	spi_swapdev;
-	/* circleq of swapdevs at this priority */
+	/* tailq of swapdevs at this priority */
 	LIST_ENTRY(swappri)	spi_swappri;      /* global list of pri's */
 };
 
@@ -348,7 +348,7 @@ swaplist_insert(struct swapdev *sdp, str
 
 	/*
 	 * priority found (or created).   now insert on the priority's
-	 * circleq list and bump the total number of swapdevs.
+	 * tailq list and bump the total number of swapdevs.
 	 */
 	sdp->swd_priority = priority;
 	TAILQ_INSERT_TAIL(&spp->spi_swapdev, sdp, swd_next);
@@ -1618,7 +1618,7 @@ ReTry:	/* XXXMRG */
 			KASSERT(result < sdp->swd_drumsize);
 
 			/*
-			 * successful allocation!  now rotate the circleq.
+			 * successful allocation!  now rotate the tailq.
 			 */
 			TAILQ_REMOVE(&spp->spi_swapdev, sdp, swd_next);
 			TAILQ_INSERT_TAIL(&spp->spi_swapdev, sdp, swd_next);

Reply via email to