diff options
author | phk <phk@FreeBSD.org> | 2000-01-10 12:04:27 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2000-01-10 12:04:27 +0000 |
commit | ae0c1ec8f72abc7b43c1fed6860db12370093a0a (patch) | |
tree | d473773da273d9f8e9ef585dcf6dea59e03c2855 /sys/vm | |
parent | 5a624ba37849e1a07c962f1ec21e8e3df37884af (diff) | |
download | FreeBSD-src-ae0c1ec8f72abc7b43c1fed6860db12370093a0a.zip FreeBSD-src-ae0c1ec8f72abc7b43c1fed6860db12370093a0a.tar.gz |
Give vn_isdisk() a second argument where it can return a suitable errno.
Suggested by: bde
Diffstat (limited to 'sys/vm')
-rw-r--r-- | sys/vm/vm_swap.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/vm/vm_swap.c b/sys/vm/vm_swap.c index 23bddad..9577c59 100644 --- a/sys/vm/vm_swap.c +++ b/sys/vm/vm_swap.c @@ -202,8 +202,7 @@ swapon(p, uap) NDFREE(&nd, NDF_ONLY_PNBUF); vp = nd.ni_vp; - if (!vn_isdisk(vp)) - error = ENOTBLK; + vn_isdisk(vp, &error); if (!error) error = swaponvp(p, vp, vp->v_rdev, 0); |