From b19d4b12c05dcf42a7382784803f255abbd33a2d Mon Sep 17 00:00:00 2001 From: Poul-Henning Kamp Date: Sun, 9 May 1999 17:28:00 +0000 Subject: [PATCH] No point in swapdev being a static global when used only locally. --- sys/vm/vm_swap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/vm/vm_swap.c b/sys/vm/vm_swap.c index 48c7ad3dfbb7..79f9ad28f8a4 100644 --- a/sys/vm/vm_swap.c +++ b/sys/vm/vm_swap.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)vm_swap.c 8.5 (Berkeley) 2/17/94 - * $Id: vm_swap.c,v 1.65 1999/05/07 10:11:40 phk Exp $ + * $Id: vm_swap.c,v 1.66 1999/05/08 06:40:31 phk Exp $ */ #include "opt_devfs.h" @@ -81,7 +81,6 @@ static struct cdevsw sw_cdevsw = NULL, -1, nodump, nopsize, 0, 0, -1}; -static dev_t swapdev = makedev(BDEV_MAJOR, 0); /* * Indirect driver for multi-controller paging. @@ -264,6 +263,7 @@ swaponvp(p, vp, dev, nblks) register long blk; swblk_t dvbase; int error; + dev_t swapdev = makedev(BDEV_MAJOR, 0); ASSERT_VOP_UNLOCKED(vp, "swaponvp"); for (sp = swdevt, index = 0 ; index < nswdev; index++, sp++) {