aboutsummaryrefslogtreecommitdiff
path: root/module/zfs/zfs_znode.c
diff options
context:
space:
mode:
authorBrian Behlendorf <behlendorf1@llnl.gov>2010-08-26 18:49:16 +0000
committerBrian Behlendorf <behlendorf1@llnl.gov>2010-08-31 20:41:58 +0000
commitc28b227942b421ebdc03c9df9a012642fb517223 (patch)
treeec584e21d6fbc819353792d54a7dffb454029111 /module/zfs/zfs_znode.c
parent00b46022c676e402e3f33ce93ee2983bbad2c46f (diff)
downloadsrc-c28b227942b421ebdc03c9df9a012642fb517223.tar.gz
src-c28b227942b421ebdc03c9df9a012642fb517223.zip
Add linux kernel module support
Setup linux kernel module support, this includes: - zfs context for kernel/user - kernel module build system integration - kernel module macros - kernel module symbol export - kernel module options Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Diffstat (limited to 'module/zfs/zfs_znode.c')
-rw-r--r--module/zfs/zfs_znode.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/module/zfs/zfs_znode.c b/module/zfs/zfs_znode.c
index 5e6bab81a183..4f6185fb53eb 100644
--- a/module/zfs/zfs_znode.c
+++ b/module/zfs/zfs_znode.c
@@ -2162,3 +2162,8 @@ zfs_obj_to_stats(objset_t *osp, uint64_t obj, zfs_stat_t *sb,
zfs_release_sa_handle(hdl, db);
return (error);
}
+
+#if defined(_KERNEL) && defined(HAVE_SPL)
+EXPORT_SYMBOL(zfs_create_fs);
+EXPORT_SYMBOL(zfs_obj_to_path);
+#endif