mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2025-01-10 02:00:34 +03:00
d6a779a278
FreeBSD's previous ZFS implemented INGLOBALZONE(thread) as (!jailed((thread)->td_ucred)) and passed curthread to INGLOBALZONE. We pass curproc instead of curthread, so we can achieve the same effect with (!jailed((proc)->p_ucred)). The implementation is trivial enough to fit on a single line in a define. We don't really need a whole separate function for something that's already macros all the way down. Eliminate in_globalzone. Reviewed-by: Alexander Motin <mav@FreeBSD.org> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Ryan Moeller <freqlabs@FreeBSD.org> Closes #10851 |
||
---|---|---|
.. | ||
acl_common.c | ||
callb.c | ||
list.c | ||
sha224.h | ||
sha256.h | ||
sha256c.c | ||
sha384.h | ||
sha512.h | ||
sha512c.c | ||
sha512t.h | ||
spl_acl.c | ||
spl_atomic.c | ||
spl_cmn_err.c | ||
spl_dtrace.c | ||
spl_kmem.c | ||
spl_kstat.c | ||
spl_misc.c | ||
spl_policy.c | ||
spl_procfs_list.c | ||
spl_string.c | ||
spl_sunddi.c | ||
spl_sysevent.c | ||
spl_taskq.c | ||
spl_uio.c | ||
spl_vfs.c | ||
spl_vm.c | ||
spl_zlib.c | ||
spl_zone.c |