Skip to content

Commit

Permalink
Export dnode symbols
Browse files Browse the repository at this point in the history
External consumers such as Lustre require access to the dnode
interfaces in order to correctly manipulate dnodes.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Issue openzfs#8994
  • Loading branch information
behlendorf committed Jul 12, 2019
1 parent e5db313 commit 588454d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions module/zfs/dnode.c
Original file line number Diff line number Diff line change
Expand Up @@ -2502,3 +2502,13 @@ dnode_next_offset(dnode_t *dn, int flags, uint64_t *offset,

return (error);
}

#if defined(_KERNEL)
EXPORT_SYMBOL(dnode_hold);
EXPORT_SYMBOL(dnode_rele);
EXPORT_SYMBOL(dnode_set_nlevels);
EXPORT_SYMBOL(dnode_set_blksz);
EXPORT_SYMBOL(dnode_free_range);
EXPORT_SYMBOL(dnode_evict_dbufs);
EXPORT_SYMBOL(dnode_evict_bonus);
#endif

0 comments on commit 588454d

Please sign in to comment.