summaryrefslogtreecommitdiffstats
path: root/sys/isofs
diff options
context:
space:
mode:
authordyson <dyson@FreeBSD.org>1995-11-20 03:57:50 +0000
committerdyson <dyson@FreeBSD.org>1995-11-20 03:57:50 +0000
commit695d23a6ac604a7a19821795b99ebfe5f479d238 (patch)
tree8cf7dda62beca4bc1920ec4c80508d1d7b74db6d /sys/isofs
parentec06551d103d10457261a53d30ab352221ed78c5 (diff)
downloadFreeBSD-src-695d23a6ac604a7a19821795b99ebfe5f479d238.zip
FreeBSD-src-695d23a6ac604a7a19821795b99ebfe5f479d238.tar.gz
Since FreeBSD clustering code now supports filesystems < PAGE_SIZE,
enable clustering for cd9660, thereby giving a BIG performance boost.
Diffstat (limited to 'sys/isofs')
-rw-r--r--sys/isofs/cd9660/cd9660_vnops.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/isofs/cd9660/cd9660_vnops.c b/sys/isofs/cd9660/cd9660_vnops.c
index 79ec54f..8c8f724 100644
--- a/sys/isofs/cd9660/cd9660_vnops.c
+++ b/sys/isofs/cd9660/cd9660_vnops.c
@@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)cd9660_vnops.c 8.3 (Berkeley) 1/23/94
- * $Id: cd9660_vnops.c,v 1.20 1995/11/12 10:16:53 davidg Exp $
+ * $Id: cd9660_vnops.c,v 1.21 1995/11/12 10:36:19 davidg Exp $
*/
#include <sys/param.h>
@@ -283,8 +283,12 @@ extern int doclusterread;
#endif
#else
/* XXX until cluster routines can handle block sizes less than one page */
+#if defined(__FreeBSD__)
+#define doclusterread 1
+#else
#define doclusterread 0
#endif
+#endif
/*
* Vnode op for reading.
@@ -328,7 +332,7 @@ cd9660_read(ap)
rablock = lbn + 1;
if (doclusterread) {
if (iso_lblktosize(imp, rablock) <= ip->i_size)
- error = cluster_read(vp, (off_t)ip->i_size,
+ error = cluster_read(vp, ip->i_size,
lbn, size, NOCRED, &bp);
else
error = bread(vp, lbn, size, NOCRED, &bp);
OpenPOWER on IntegriCloud