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.

Reviewed-by: James Simmons <[email protected]>
Reviewed-by: Olaf Faaland <[email protected]>
Reviewed-by: George Melikov <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Issue openzfs#8994
Closes openzfs#9027
  • Loading branch information
behlendorf authored and TulsiJain committed Jul 20, 2019
1 parent d7018e6 commit 41ece46
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 41ece46

Please sign in to comment.