]> git.proxmox.com Git - mirror_zfs.git/commit - include/sys/zap.h
Add *_by-dnode routines
authorbzzz77 <bzzz.tomas@gmail.com>
Fri, 13 Jan 2017 22:58:41 +0000 (01:58 +0300)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 13 Jan 2017 22:58:41 +0000 (14:58 -0800)
commit0eef1bde31d67091d3deed23fe2394f5a8bf2276
treef16df818c69345a235c436a2e6d565d53657bf46
parent38640550f28c5acd94621f3452fab428df469bdb
Add *_by-dnode routines

Add *_by_dnode() routines for accessing objects given their
dnode_t *, this is more efficient than accessing the object by
(objset_t *, uint64_t object).  This change converts some but
not all of the existing consumers.  As performance-sensitive
code paths are discovered they should be converted to use
these routines.

Reviewed-by: Matthew Ahrens <mahrens@delphix.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Alex Zhuravlev <bzzz@whamcloud.com>
Closes #5534
Issue #4802
include/sys/dmu.h
include/sys/dmu_tx.h
include/sys/zap.h
module/zfs/dmu.c
module/zfs/dmu_object.c
module/zfs/dmu_tx.c
module/zfs/zap_micro.c