cvs commit: src/sys/dev/md md.c

Colin Percival cperciva at FreeBSD.org
Sun Feb 29 07:58:55 PST 2004


cperciva    2004/02/29 07:58:54 PST

  FreeBSD src repository

  Modified files:
    sys/dev/md           md.c 
  Log:
  Use DEV_BSIZE byte sectors instead of PAGE_SIZE byte sectors for
  swap-backed memory disks.  This reduces filesystem allocation overhead
  and makes swap-backed memory disks compatible with broken code (dd,
  for example) which expects to see 512 byte sectors.  The size of a
  swap-backed memory disk must still be a multiple of the page size.
  
  When performing page-aligned operations, this change has zero
  performance impact.
  
  Reviewed by:    phk
  Approved by:    rwatson (mentor)
  
  Revision  Changes    Path
  1.112     +49 -19    src/sys/dev/md/md.c


More information about the cvs-src mailing list