mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-16 15:44:04 +01:00
Back out previous commit. It was wrong, and caused panics.
This commit is contained in:
parent
07c50a3b6b
commit
4116f679c7
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=48651
@ -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