Date: Sun, 29 Feb 2004 07:58:54 -0800 (PST) From: Colin Percival <cperciva@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/dev/md md.c Message-ID: <200402291558.i1TFwsGw035149@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200402291558.i1TFwsGw035149>
