aboutsummaryrefslogtreecommitdiff
path: root/sys/fs
diff options
context:
space:
mode:
authorJohn Dyson <dyson@FreeBSD.org>1995-11-20 03:57:50 +0000
committerJohn Dyson <dyson@FreeBSD.org>1995-11-20 03:57:50 +0000
commit2d6ec99c0aed8f88e066ea117700e28b6a9f4899 (patch)
tree8cf7dda62beca4bc1920ec4c80508d1d7b74db6d /sys/fs
parent10c8eaff6797eefaf24ce67fb38559c1085d3203 (diff)
downloadsrc-2d6ec99c0aed8f88e066ea117700e28b6a9f4899.tar.gz
src-2d6ec99c0aed8f88e066ea117700e28b6a9f4899.zip
Since FreeBSD clustering code now supports filesystems < PAGE_SIZE,
enable clustering for cd9660, thereby giving a BIG performance boost.
Notes
Notes: svn path=/head/; revision=12412
Diffstat (limited to 'sys/fs')
-rw-r--r--sys/fs/cd9660/cd9660_vnops.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/fs/cd9660/cd9660_vnops.c b/sys/fs/cd9660/cd9660_vnops.c
index 79ec54f27c8f..8c8f724a4f5b 100644
--- a/sys/fs/cd9660/cd9660_vnops.c
+++ b/sys/fs/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);