aboutsummaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2016-11-05 04:54:48 +0000
committerBrian Behlendorf <[email protected]>2016-11-07 10:26:17 -0800
commit34328f3cf8a4ca9441a1609878500ef1ff2eeb16 (patch)
tree7d0fac1bcc36d69ee211a083f211c8b6d1e609af /module
parent61f9b2cd12a34dcc98e1c94d2988d561ff847b7b (diff)
Allow 16M zio buffers in user space
Only restrict the maximum zio alloc size to 32-bit kernel space. The same virtual address space limitations don't apply to user space. This resolves a memory allocation failure in raidz_test where it expects to be able to exercises all valid zio sizes. Signed-off-by: Brian Behlendorf <[email protected]>
Diffstat (limited to 'module')
-rw-r--r--module/zfs/zio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/module/zfs/zio.c b/module/zfs/zio.c
index 638e3d805..223c20abe 100644
--- a/module/zfs/zio.c
+++ b/module/zfs/zio.c
@@ -131,7 +131,7 @@ zio_init(void)
size_t align = 0;
size_t cflags = (size > zio_buf_debug_limit) ? KMC_NODEBUG : 0;
-#ifdef _ILP32
+#if defined(_ILP32) && defined(_KERNEL)
/*
* Cache size limited to 1M on 32-bit platforms until ARC
* buffers no longer require virtual address space.