diff options
author | Brian Behlendorf <behlendorf1@llnl.gov> | 2015-02-05 20:43:37 +0000 |
---|---|---|
committer | Brian Behlendorf <behlendorf1@llnl.gov> | 2015-02-10 19:00:08 +0000 |
commit | 77aef6f60ea29f6d3769addc778db6328ac85755 (patch) | |
tree | 493dbe281fd2c93c0f55806d2b46076d5d71263b /module/zfs/spa.c | |
parent | afe373260ebf96ca5482b9ccbcef5915c47d18f7 (diff) | |
download | src-77aef6f60ea29f6d3769addc778db6328ac85755.tar.gz src-77aef6f60ea29f6d3769addc778db6328ac85755.zip |
Diffstat (limited to 'module/zfs/spa.c')
-rw-r--r-- | module/zfs/spa.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/module/zfs/spa.c b/module/zfs/spa.c index 55bcf43f884c..861a319afdb7 100644 --- a/module/zfs/spa.c +++ b/module/zfs/spa.c @@ -1586,12 +1586,12 @@ load_nvlist(spa_t *spa, uint64_t obj, nvlist_t **value) nvsize = *(uint64_t *)db->db_data; dmu_buf_rele(db, FTAG); - packed = kmem_alloc(nvsize, KM_SLEEP); + packed = vmem_alloc(nvsize, KM_SLEEP); error = dmu_read(spa->spa_meta_objset, obj, 0, nvsize, packed, DMU_READ_PREFETCH); if (error == 0) error = nvlist_unpack(packed, nvsize, value, 0); - kmem_free(packed, nvsize); + vmem_free(packed, nvsize); return (error); } |