HomeFreeBSD

Use vmem_alloc() for zfs_ioc_userspace_many()

Description

Use vmem_alloc() for zfs_ioc_userspace_many()

The default buffer size when requesting multiple quota entries
is 100 times the zfs_useracct_t size. In practice this works out
to exactly 27200 bytes. Since this will be a short lived buffer
in a non-performance critical path it is preferable to vmem_alloc()
the needed memory.

Details

Provenance
Brian Behlendorf <behlendorf1@llnl.gov>Authored on May 20 2011, 9:23 PM
Parents
rG4804b739e1e8: Default to internal 'zfs userspace' implementation
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG2b8cad61590d: Use vmem_alloc() for zfs_ioc_userspace_many() (authored by Brian Behlendorf <behlendorf1@llnl.gov>).May 20 2011, 9:23 PM