]> git.proxmox.com Git - mirror_spl.git/commit
Use vmem_free() in dfl_free() and add dfl_alloc()
authorTim Chase <tim@chase2k.com>
Sun, 24 Apr 2016 23:29:03 +0000 (18:29 -0500)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 26 Apr 2016 18:20:14 +0000 (11:20 -0700)
commit3bf657b90c792ff4539a75d3b66593de556580c0
tree8af6779d0a4d7a434d0a4269dcf9d48c54111133
parentcdd39dd2457ac57622339669db0536a580374bd3
Use vmem_free() in dfl_free() and add dfl_alloc()

This change was lost, somehow, in e5f9a9a.  Since the arrays can be
rather large, they need to be allocated with vmem_zalloc() via dfl_alloc()
and freed with vmem_free() via dfl_free().

The new dfl_alloc() function should be used to allocate object of type
dkioc_free_list_t in order that they're allocated from vmem.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Tim Chase <tim@chase2k.com>
Signed-off-by: Nikolay Borisov <kernel@kyup.com>
Closes #543
include/sys/dkioc_free_util.h