diff options
Diffstat (limited to 'module')
-rw-r--r-- | module/zfs/arc.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/module/zfs/arc.c b/module/zfs/arc.c index 06fb72b60..c1e0bfbba 100644 --- a/module/zfs/arc.c +++ b/module/zfs/arc.c @@ -3373,6 +3373,11 @@ arc_kmem_reap_now(void) } for (i = 0; i < SPA_MAXBLOCKSIZE >> SPA_MINBLOCKSHIFT; i++) { +#ifdef _ILP32 + /* reach upper limit of cache size on 32-bit */ + if (zio_buf_cache[i] == NULL) + break; +#endif if (zio_buf_cache[i] != prev_cache) { prev_cache = zio_buf_cache[i]; kmem_cache_reap_now(zio_buf_cache[i]); |