]> git.proxmox.com Git - mirror_zfs.git/commit - module/zfs/zfs_ioctl.c
Use vmem_alloc() for zfs_ioc_userspace_many()
authorBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 20 May 2011 21:23:18 +0000 (14:23 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 20 May 2011 21:23:18 +0000 (14:23 -0700)
commit2b8cad61590d38f70ebf8734484204d7da2da937
tree1b06aa3d588ed0f0c5b6e60b36b2e5bde5d3a9e3
parent4804b739e1e851f21f8e98c99275af2570c44a15
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.
module/zfs/zfs_ioctl.c