summaryrefslogtreecommitdiffstats
path: root/sys/boot/zfs
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2009-12-09 20:36:56 +0000
committerjhb <jhb@FreeBSD.org>2009-12-09 20:36:56 +0000
commit7e12f2642364bfc931d1e1cbdb67769f3fe1ffed (patch)
tree7725e0fb6e07454f26247ba44c4ed41b1d369984 /sys/boot/zfs
parentaedf335d52844b1a99d511795a5acfc974a8e6aa (diff)
downloadFreeBSD-src-7e12f2642364bfc931d1e1cbdb67769f3fe1ffed.zip
FreeBSD-src-7e12f2642364bfc931d1e1cbdb67769f3fe1ffed.tar.gz
- Port bios_getmem() from libi386 to {gpt,}zfsboot() and use it to
safely allocate a heap region above 1MB. This enables {gpt,}zfsboot() to allocate much larger buffers than before. - Use a larger buffer (1MB instead of 128K) for temporary ZFS buffers. This allows more reliable reading of compressed files in a raidz/raidz2 pool. Submitted by: Matt Reimer mattjreimer of gmail MFC after: 1 week
Diffstat (limited to 'sys/boot/zfs')
-rw-r--r--sys/boot/zfs/zfsimpl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/boot/zfs/zfsimpl.c b/sys/boot/zfs/zfsimpl.c
index 497fd7c..adddb6a 100644
--- a/sys/boot/zfs/zfsimpl.c
+++ b/sys/boot/zfs/zfsimpl.c
@@ -51,7 +51,7 @@ static char *dnode_cache_buf;
static char *zap_scratch;
static char *zfs_temp_buf, *zfs_temp_end, *zfs_temp_ptr;
-#define TEMP_SIZE (1*SPA_MAXBLOCKSIZE)
+#define TEMP_SIZE (1024 * 1024)
static int zio_read(spa_t *spa, const blkptr_t *bp, void *buf);
OpenPOWER on IntegriCloud