From owner-cvs-all Sun Oct 25 11:24:10 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA06914 for cvs-all-outgoing; Sun, 25 Oct 1998 11:24:10 -0800 (PST) (envelope-from owner-cvs-all@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA06902; Sun, 25 Oct 1998 11:24:08 -0800 (PST) (envelope-from bde@FreeBSD.org) From: Bruce Evans Received: (from bde@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id LAA21453; Sun, 25 Oct 1998 11:24:05 -0800 (PST) Date: Sun, 25 Oct 1998 11:24:05 -0800 (PST) Message-Id: <199810251924.LAA21453@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Subject: cvs commit: src/sys/vm vm_swap.c Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk bde 1998/10/25 11:24:04 PST Modified files: sys/vm vm_swap.c Log: Don't follow null bdevsw pointers. The `major(dev) < nblkdev' test rotted when bdevsw[] became sparse. We still depend on magic to avoid having to check that (v_rdev) device numbers in vnodes are not NODEV. Removed a redundant `major(dev) < nblkdev' test instead of updating it. Don't follow a garbage bdevsw pointer for attempts to swap on empty regular files. This case currently can't happen. Swapping on regular files is ifdefed out in swapon() and isn't attempted for empty files in nfs_mountroot(). Revision Changes Path 1.57 +4 -7 src/sys/vm/vm_swap.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message