Back out previous commit. It was wrong, and caused panics.
This commit is contained in:
parent
07c50a3b6b
commit
4116f679c7
@ -155,7 +155,7 @@ void ldisc_deregister __P((int));
|
||||
* Swap device table
|
||||
*/
|
||||
struct swdevt {
|
||||
udev_t sw_dev;
|
||||
dev_t sw_dev;
|
||||
int sw_flags;
|
||||
int sw_nblks;
|
||||
struct vnode *sw_vp;
|
||||
|
@ -155,7 +155,7 @@ void ldisc_deregister __P((int));
|
||||
* Swap device table
|
||||
*/
|
||||
struct swdevt {
|
||||
udev_t sw_dev;
|
||||
dev_t sw_dev;
|
||||
int sw_flags;
|
||||
int sw_nblks;
|
||||
struct vnode *sw_vp;
|
||||
|
@ -314,7 +314,7 @@ swaponvp(p, vp, dev, nblks)
|
||||
nblks = dbtoc(nblks);
|
||||
|
||||
sp->sw_vp = vp;
|
||||
sp->sw_dev = dev2udev(dev);
|
||||
sp->sw_dev = dev;
|
||||
sp->sw_flags |= SW_FREED;
|
||||
sp->sw_nblks = nblks;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user