Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 Oct 1998 11:24:05 -0800 (PST)
From:      Bruce Evans <bde@FreeBSD.ORG>
To:        cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG
Subject:   cvs commit: src/sys/vm vm_swap.c
Message-ID:  <199810251924.LAA21453@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199810251924.LAA21453>