Please sign in to comment.
Provide more flexible object allocation interface
Object allocation performance can be improved for complex operations by providing an interface which returns the newly allocated dnode. This allows the caller to immediately use the dnode without incurring the expense of looking up the dnode by object number. The functions dmu_object_alloc_hold(), zap_create_hold(), and dmu_bonus_hold_by_dnode() were added for this purpose. The zap_create_* functions have been updated to take advantage of this new functionality. The dmu_bonus_hold_impl() function should really have never been included in sys/dmu.h and was removed. It's sole caller was converted to use dmu_bonus_hold_by_dnode(). The new symbols have been exported for use by Lustre. Reviewed-by: Tony Hutter <email@example.com> Reviewed by: Matt Ahrens <firstname.lastname@example.org> Signed-off-by: Brian Behlendorf <email@example.com> Closes #8015
- Loading branch information...
Showing with 149 additions and 56 deletions.
Oops, something went wrong.