mirror of
https://github.com/freebsd/freebsd-src
synced 2024-11-05 18:22:52 +00:00
No point in swapdev being a static global when used only locally.
This commit is contained in:
parent
bb4d56144e
commit
b19d4b12c0
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=46816
1 changed files with 2 additions and 2 deletions
|
@ -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++) {
|
||||
|
|
Loading…
Reference in a new issue