diff options
author | Brian Behlendorf <[email protected]> | 2011-09-30 10:33:26 -0700 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2011-10-05 15:59:56 -0700 |
commit | e45aa452988f721e458fa3abe54669bdf9377352 (patch) | |
tree | 460c9e5280ffafc91475cad3a9f1c83e77ab4c27 | |
parent | e8753fb4f03aaa371028aaec145449f2610229cf (diff) |
Export symbols for the full SA API
Export all the symbols for the system attribute (SA) API. This
allows external module to cleanly manipulate the SAs associated
with a dnode. Documention for the SA API can be found in the
module/zfs/sa.c source.
This change also removes the zfs_sa_uprade_pre, and
zfs_sa_uprade_post prototypes. The functions themselves were
dropped some time ago.
Signed-off-by: Brian Behlendorf <[email protected]>
-rw-r--r-- | include/sys/zfs_sa.h | 4 | ||||
-rw-r--r-- | module/zfs/sa.c | 35 | ||||
-rw-r--r-- | module/zfs/zfs_sa.c | 7 |
3 files changed, 43 insertions, 3 deletions
diff --git a/include/sys/zfs_sa.h b/include/sys/zfs_sa.h index cd312b27a..90bb9972b 100644 --- a/include/sys/zfs_sa.h +++ b/include/sys/zfs_sa.h @@ -128,11 +128,9 @@ typedef struct znode_phys { #ifdef _KERNEL int zfs_sa_readlink(struct znode *, uio_t *); void zfs_sa_symlink(struct znode *, char *link, int len, dmu_tx_t *); -void zfs_sa_upgrade(struct sa_handle *, dmu_tx_t *); void zfs_sa_get_scanstamp(struct znode *, xvattr_t *); void zfs_sa_set_scanstamp(struct znode *, xvattr_t *, dmu_tx_t *); -void zfs_sa_uprade_pre(struct sa_handle *, void *, dmu_tx_t *); -void zfs_sa_upgrade_post(struct sa_handle *, void *, dmu_tx_t *); +void zfs_sa_upgrade(struct sa_handle *, dmu_tx_t *); void zfs_sa_upgrade_txholds(dmu_tx_t *, struct znode *); #endif diff --git a/module/zfs/sa.c b/module/zfs/sa.c index c90008252..8acbb0cbb 100644 --- a/module/zfs/sa.c +++ b/module/zfs/sa.c @@ -1969,3 +1969,38 @@ sa_handle_unlock(sa_handle_t *hdl) ASSERT(hdl); mutex_exit(&hdl->sa_lock); } + +#ifdef _KERNEL +EXPORT_SYMBOL(sa_handle_get); +EXPORT_SYMBOL(sa_handle_get_from_db); +EXPORT_SYMBOL(sa_handle_destroy); +EXPORT_SYMBOL(sa_buf_hold); +EXPORT_SYMBOL(sa_buf_rele); +EXPORT_SYMBOL(sa_lookup); +EXPORT_SYMBOL(sa_update); +EXPORT_SYMBOL(sa_remove); +EXPORT_SYMBOL(sa_bulk_lookup); +EXPORT_SYMBOL(sa_bulk_lookup_locked); +EXPORT_SYMBOL(sa_bulk_update); +EXPORT_SYMBOL(sa_size); +EXPORT_SYMBOL(sa_update_from_cb); +EXPORT_SYMBOL(sa_object_info); +EXPORT_SYMBOL(sa_object_size); +EXPORT_SYMBOL(sa_update_user); +EXPORT_SYMBOL(sa_get_userdata); +EXPORT_SYMBOL(sa_set_userp); +EXPORT_SYMBOL(sa_get_db); +EXPORT_SYMBOL(sa_handle_object); +EXPORT_SYMBOL(sa_register_update_callback); +EXPORT_SYMBOL(sa_setup); +EXPORT_SYMBOL(sa_replace_all_by_template); +EXPORT_SYMBOL(sa_replace_all_by_template_locked); +EXPORT_SYMBOL(sa_enabled); +EXPORT_SYMBOL(sa_cache_init); +EXPORT_SYMBOL(sa_cache_fini); +EXPORT_SYMBOL(sa_set_sa_object); +EXPORT_SYMBOL(sa_hdrsize); +EXPORT_SYMBOL(sa_handle_lock); +EXPORT_SYMBOL(sa_handle_unlock); +EXPORT_SYMBOL(sa_lookup_uio); +#endif /* _KERNEL */ diff --git a/module/zfs/zfs_sa.c b/module/zfs/zfs_sa.c index b8f208bba..324e9b96c 100644 --- a/module/zfs/zfs_sa.c +++ b/module/zfs/zfs_sa.c @@ -334,4 +334,11 @@ zfs_sa_upgrade_txholds(dmu_tx_t *tx, znode_t *zp) } } +EXPORT_SYMBOL(zfs_sa_readlink); +EXPORT_SYMBOL(zfs_sa_symlink); +EXPORT_SYMBOL(zfs_sa_get_scanstamp); +EXPORT_SYMBOL(zfs_sa_set_scanstamp); +EXPORT_SYMBOL(zfs_sa_upgrade); +EXPORT_SYMBOL(zfs_sa_upgrade_txholds); + #endif |