mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 10:37:35 +03:00
Update build system and packaging
Minimal changes required to integrate the SPL sources in to the
ZFS repository build infrastructure and packaging.
Build system and packaging:
* Renamed SPL_* autoconf m4 macros to ZFS_*.
* Removed redundant SPL_* autoconf m4 macros.
* Updated the RPM spec files to remove SPL package dependency.
* The zfs package obsoletes the spl package, and the zfs-kmod
package obsoletes the spl-kmod package.
* The zfs-kmod-devel* packages were updated to add compatibility
symlinks under /usr/src/spl-x.y.z until all dependent packages
can be updated. They will be removed in a future release.
* Updated copy-builtin script for in-kernel builds.
* Updated DKMS package to include the spl.ko.
* Updated stale AUTHORS file to include all contributors.
* Updated stale COPYRIGHT and included the SPL as an exception.
* Renamed README.markdown to README.md
* Renamed OPENSOLARIS.LICENSE to LICENSE.
* Renamed DISCLAIMER to NOTICE.
Required code changes:
* Removed redundant HAVE_SPL macro.
* Removed _BOOT from nvpairs since it doesn't apply for Linux.
* Initial header cleanup (removal of empty headers, refactoring).
* Remove SPL repository clone/build from zimport.sh.
* Use of DEFINE_RATELIMIT_STATE and DEFINE_SPINLOCK removed due
to build issues when forcing C99 compilation.
* Replaced legacy ACCESS_ONCE with READ_ONCE.
* Include needed headers for `current` and `EXPORT_SYMBOL`.
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Olaf Faaland <faaland1@llnl.gov>
Reviewed-by: Matthew Ahrens <mahrens@delphix.com>
Reviewed-by: Pavel Zakharov <pavel.zakharov@delphix.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
TEST_ZIMPORT_SKIP="yes"
Closes #7556
This commit is contained in:
+1
-1
@@ -1466,7 +1466,7 @@ abd_raidz_rec_iterate(abd_t **cabds, abd_t **tabds,
|
||||
local_irq_restore(flags);
|
||||
}
|
||||
|
||||
#if defined(_KERNEL) && defined(HAVE_SPL)
|
||||
#if defined(_KERNEL)
|
||||
/*
|
||||
* bio_nr_pages for ABD.
|
||||
* @off is the offset in @abd
|
||||
|
||||
+4
-6
@@ -292,11 +292,9 @@
|
||||
#include <sys/zil.h>
|
||||
#include <sys/fm/fs/zfs.h>
|
||||
#ifdef _KERNEL
|
||||
#include <sys/shrinker.h>
|
||||
#include <sys/vmsystm.h>
|
||||
#include <vm/anon.h>
|
||||
#include <sys/fs/swapnode.h>
|
||||
#include <sys/zpl.h>
|
||||
#include <linux/mm_compat.h>
|
||||
#include <linux/page_compat.h>
|
||||
#endif
|
||||
#include <sys/callb.h>
|
||||
@@ -1199,7 +1197,7 @@ buf_fini(void)
|
||||
{
|
||||
int i;
|
||||
|
||||
#if defined(_KERNEL) && defined(HAVE_SPL)
|
||||
#if defined(_KERNEL)
|
||||
/*
|
||||
* Large allocations which do not require contiguous pages
|
||||
* should be using vmem_free() in the linux kernel\
|
||||
@@ -1360,7 +1358,7 @@ buf_init(void)
|
||||
hsize <<= 1;
|
||||
retry:
|
||||
buf_hash_table.ht_mask = hsize - 1;
|
||||
#if defined(_KERNEL) && defined(HAVE_SPL)
|
||||
#if defined(_KERNEL)
|
||||
/*
|
||||
* Large allocations which do not require contiguous pages
|
||||
* should be using vmem_alloc() in the linux kernel
|
||||
@@ -9050,7 +9048,7 @@ l2arc_stop(void)
|
||||
mutex_exit(&l2arc_feed_thr_lock);
|
||||
}
|
||||
|
||||
#if defined(_KERNEL) && defined(HAVE_SPL)
|
||||
#if defined(_KERNEL)
|
||||
EXPORT_SYMBOL(arc_buf_size);
|
||||
EXPORT_SYMBOL(arc_write);
|
||||
EXPORT_SYMBOL(arc_read);
|
||||
|
||||
+3
-3
@@ -762,7 +762,7 @@ dbuf_init(void)
|
||||
|
||||
retry:
|
||||
h->hash_table_mask = hsize - 1;
|
||||
#if defined(_KERNEL) && defined(HAVE_SPL)
|
||||
#if defined(_KERNEL)
|
||||
/*
|
||||
* Large allocations which do not require contiguous pages
|
||||
* should be using vmem_alloc() in the linux kernel
|
||||
@@ -847,7 +847,7 @@ dbuf_fini(void)
|
||||
|
||||
for (i = 0; i < DBUF_MUTEXES; i++)
|
||||
mutex_destroy(&h->hash_mutexes[i]);
|
||||
#if defined(_KERNEL) && defined(HAVE_SPL)
|
||||
#if defined(_KERNEL)
|
||||
/*
|
||||
* Large allocations which do not require contiguous pages
|
||||
* should be using vmem_free() in the linux kernel
|
||||
@@ -4341,7 +4341,7 @@ dbuf_write(dbuf_dirty_record_t *dr, arc_buf_t *data, dmu_tx_t *tx)
|
||||
}
|
||||
}
|
||||
|
||||
#if defined(_KERNEL) && defined(HAVE_SPL)
|
||||
#if defined(_KERNEL)
|
||||
EXPORT_SYMBOL(dbuf_find);
|
||||
EXPORT_SYMBOL(dbuf_is_metadata);
|
||||
EXPORT_SYMBOL(dbuf_destroy);
|
||||
|
||||
@@ -225,7 +225,7 @@ dbuf_stats_destroy(void)
|
||||
dbuf_stats_hash_table_destroy();
|
||||
}
|
||||
|
||||
#if defined(_KERNEL) && defined(HAVE_SPL)
|
||||
#if defined(_KERNEL)
|
||||
module_param(zfs_dbuf_state_index, int, 0644);
|
||||
MODULE_PARM_DESC(zfs_dbuf_state_index, "Calculate arc header index");
|
||||
#endif
|
||||
|
||||
+1
-1
@@ -1236,7 +1236,7 @@ ddt_walk(spa_t *spa, ddt_bookmark_t *ddb, ddt_entry_t *dde)
|
||||
return (SET_ERROR(ENOENT));
|
||||
}
|
||||
|
||||
#if defined(_KERNEL) && defined(HAVE_SPL)
|
||||
#if defined(_KERNEL)
|
||||
module_param(zfs_dedup_prefetch, int, 0644);
|
||||
MODULE_PARM_DESC(zfs_dedup_prefetch, "Enable prefetching dedup-ed blks");
|
||||
#endif
|
||||
|
||||
@@ -29,7 +29,6 @@
|
||||
#include <sys/ddt.h>
|
||||
#include <sys/zap.h>
|
||||
#include <sys/dmu_tx.h>
|
||||
#include <util/sscanf.h>
|
||||
|
||||
int ddt_zap_leaf_blockshift = 12;
|
||||
int ddt_zap_indirect_blockshift = 12;
|
||||
|
||||
+1
-1
@@ -2505,7 +2505,7 @@ dmu_fini(void)
|
||||
abd_fini();
|
||||
}
|
||||
|
||||
#if defined(_KERNEL) && defined(HAVE_SPL)
|
||||
#if defined(_KERNEL)
|
||||
EXPORT_SYMBOL(dmu_bonus_hold);
|
||||
EXPORT_SYMBOL(dmu_buf_hold_array_by_bonus);
|
||||
EXPORT_SYMBOL(dmu_buf_rele_array);
|
||||
|
||||
@@ -411,7 +411,7 @@ dmu_object_free_zapified(objset_t *mos, uint64_t object, dmu_tx_t *tx)
|
||||
VERIFY0(dmu_object_free(mos, object, tx));
|
||||
}
|
||||
|
||||
#if defined(_KERNEL) && defined(HAVE_SPL)
|
||||
#if defined(_KERNEL)
|
||||
EXPORT_SYMBOL(dmu_object_alloc);
|
||||
EXPORT_SYMBOL(dmu_object_alloc_dnsize);
|
||||
EXPORT_SYMBOL(dmu_object_claim);
|
||||
|
||||
@@ -2950,7 +2950,7 @@ dmu_objset_willuse_space(objset_t *os, int64_t space, dmu_tx_t *tx)
|
||||
}
|
||||
}
|
||||
|
||||
#if defined(_KERNEL) && defined(HAVE_SPL)
|
||||
#if defined(_KERNEL)
|
||||
EXPORT_SYMBOL(dmu_objset_zil);
|
||||
EXPORT_SYMBOL(dmu_objset_pool);
|
||||
EXPORT_SYMBOL(dmu_objset_ds);
|
||||
|
||||
@@ -769,7 +769,7 @@ traverse_pool(spa_t *spa, uint64_t txg_start, int flags,
|
||||
return (err);
|
||||
}
|
||||
|
||||
#if defined(_KERNEL) && defined(HAVE_SPL)
|
||||
#if defined(_KERNEL)
|
||||
EXPORT_SYMBOL(traverse_dataset);
|
||||
EXPORT_SYMBOL(traverse_pool);
|
||||
|
||||
|
||||
+1
-2
@@ -37,7 +37,6 @@
|
||||
#include <sys/sa.h>
|
||||
#include <sys/sa_impl.h>
|
||||
#include <sys/zfs_context.h>
|
||||
#include <sys/varargs.h>
|
||||
#include <sys/trace_dmu.h>
|
||||
|
||||
typedef void (*dmu_tx_hold_func_t)(dmu_tx_t *tx, struct dnode *dn,
|
||||
@@ -1372,7 +1371,7 @@ dmu_tx_fini(void)
|
||||
}
|
||||
}
|
||||
|
||||
#if defined(_KERNEL) && defined(HAVE_SPL)
|
||||
#if defined(_KERNEL)
|
||||
EXPORT_SYMBOL(dmu_tx_create);
|
||||
EXPORT_SYMBOL(dmu_tx_hold_write);
|
||||
EXPORT_SYMBOL(dmu_tx_hold_write_by_dnode);
|
||||
|
||||
@@ -357,7 +357,7 @@ dmu_zfetch(zfetch_t *zf, uint64_t blkid, uint64_t nblks, boolean_t fetch_data)
|
||||
ZFETCHSTAT_BUMP(zfetchstat_hits);
|
||||
}
|
||||
|
||||
#if defined(_KERNEL) && defined(HAVE_SPL)
|
||||
#if defined(_KERNEL)
|
||||
/* BEGIN CSTYLED */
|
||||
module_param(zfs_prefetch_disable, int, 0644);
|
||||
MODULE_PARM_DESC(zfs_prefetch_disable, "Disable all ZFS prefetching");
|
||||
|
||||
@@ -4237,7 +4237,7 @@ dsl_dataset_create_remap_deadlist(dsl_dataset_t *ds, dmu_tx_t *tx)
|
||||
spa_feature_incr(spa, SPA_FEATURE_OBSOLETE_COUNTS, tx);
|
||||
}
|
||||
|
||||
#if defined(_KERNEL) && defined(HAVE_SPL)
|
||||
#if defined(_KERNEL)
|
||||
#if defined(_LP64)
|
||||
module_param(zfs_max_recordsize, int, 0644);
|
||||
MODULE_PARM_DESC(zfs_max_recordsize, "Max allowed record size");
|
||||
|
||||
@@ -768,7 +768,7 @@ dsl_delegation_on(objset_t *os)
|
||||
return (!!spa_delegation(os->os_spa));
|
||||
}
|
||||
|
||||
#if defined(_KERNEL) && defined(HAVE_SPL)
|
||||
#if defined(_KERNEL)
|
||||
EXPORT_SYMBOL(dsl_deleg_get);
|
||||
EXPORT_SYMBOL(dsl_deleg_set);
|
||||
#endif
|
||||
|
||||
@@ -1095,7 +1095,7 @@ dsl_destroy_inconsistent(const char *dsname, void *arg)
|
||||
}
|
||||
|
||||
|
||||
#if defined(_KERNEL) && defined(HAVE_SPL)
|
||||
#if defined(_KERNEL)
|
||||
EXPORT_SYMBOL(dsl_destroy_head);
|
||||
EXPORT_SYMBOL(dsl_destroy_head_sync_impl);
|
||||
EXPORT_SYMBOL(dsl_dataset_user_hold_check_one);
|
||||
|
||||
@@ -2165,7 +2165,7 @@ dsl_dir_is_zapified(dsl_dir_t *dd)
|
||||
return (doi.doi_type == DMU_OTN_ZAP_METADATA);
|
||||
}
|
||||
|
||||
#if defined(_KERNEL) && defined(HAVE_SPL)
|
||||
#if defined(_KERNEL)
|
||||
EXPORT_SYMBOL(dsl_dir_set_quota);
|
||||
EXPORT_SYMBOL(dsl_dir_set_reservation);
|
||||
#endif
|
||||
|
||||
@@ -1208,7 +1208,7 @@ dsl_pool_config_held_writer(dsl_pool_t *dp)
|
||||
return (RRW_WRITE_HELD(&dp->dp_config_rwlock));
|
||||
}
|
||||
|
||||
#if defined(_KERNEL) && defined(HAVE_SPL)
|
||||
#if defined(_KERNEL)
|
||||
EXPORT_SYMBOL(dsl_pool_config_enter);
|
||||
EXPORT_SYMBOL(dsl_pool_config_exit);
|
||||
|
||||
|
||||
@@ -1251,7 +1251,7 @@ dsl_prop_nvlist_add_string(nvlist_t *nv, zfs_prop_t prop, const char *value)
|
||||
nvlist_free(propval);
|
||||
}
|
||||
|
||||
#if defined(_KERNEL) && defined(HAVE_SPL)
|
||||
#if defined(_KERNEL)
|
||||
EXPORT_SYMBOL(dsl_prop_register);
|
||||
EXPORT_SYMBOL(dsl_prop_unregister);
|
||||
EXPORT_SYMBOL(dsl_prop_unregister_all);
|
||||
|
||||
@@ -3909,7 +3909,7 @@ dsl_scan_freed(spa_t *spa, const blkptr_t *bp)
|
||||
dsl_scan_freed_dva(spa, bp, i);
|
||||
}
|
||||
|
||||
#if defined(_KERNEL) && defined(HAVE_SPL)
|
||||
#if defined(_KERNEL)
|
||||
/* CSTYLED */
|
||||
module_param(zfs_scan_vdev_limit, ulong, 0644);
|
||||
MODULE_PARM_DESC(zfs_scan_vdev_limit,
|
||||
|
||||
@@ -185,7 +185,7 @@ dsl_sync_task_sync(dsl_sync_task_t *dst, dmu_tx_t *tx)
|
||||
kmem_free(dst, sizeof (*dst));
|
||||
}
|
||||
|
||||
#if defined(_KERNEL) && defined(HAVE_SPL)
|
||||
#if defined(_KERNEL)
|
||||
EXPORT_SYMBOL(dsl_sync_task);
|
||||
EXPORT_SYMBOL(dsl_sync_task_nowait);
|
||||
#endif
|
||||
|
||||
@@ -57,7 +57,6 @@
|
||||
#include <sys/nvpair.h>
|
||||
#include <sys/cmn_err.h>
|
||||
#include <sys/sysmacros.h>
|
||||
#include <sys/compress.h>
|
||||
#include <sys/sunddi.h>
|
||||
#include <sys/systeminfo.h>
|
||||
#include <sys/fm/util.h>
|
||||
@@ -67,10 +66,6 @@
|
||||
#ifdef _KERNEL
|
||||
#include <sys/atomic.h>
|
||||
#include <sys/condvar.h>
|
||||
#include <sys/cpuvar.h>
|
||||
#include <sys/systm.h>
|
||||
#include <sys/dumphdr.h>
|
||||
#include <sys/cpuvar.h>
|
||||
#include <sys/console.h>
|
||||
#include <sys/kobj.h>
|
||||
#include <sys/time.h>
|
||||
|
||||
+1
-4
@@ -28,22 +28,19 @@
|
||||
|
||||
#include <sys/debug.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/strings.h>
|
||||
#include "qat.h"
|
||||
|
||||
#ifdef _KERNEL
|
||||
|
||||
#include <sys/systm.h>
|
||||
#include <sys/zmod.h>
|
||||
|
||||
typedef size_t zlen_t;
|
||||
#define compress_func z_compress_level
|
||||
#define uncompress_func z_uncompress
|
||||
|
||||
#else /* _KERNEL */
|
||||
|
||||
#include <strings.h>
|
||||
#include <zlib.h>
|
||||
|
||||
typedef uLongf zlen_t;
|
||||
#define compress_func compress2
|
||||
#define uncompress_func uncompress
|
||||
|
||||
@@ -3850,7 +3850,7 @@ metaslab_check_free(spa_t *spa, const blkptr_t *bp)
|
||||
spa_config_exit(spa, SCL_VDEV, FTAG);
|
||||
}
|
||||
|
||||
#if defined(_KERNEL) && defined(HAVE_SPL)
|
||||
#if defined(_KERNEL)
|
||||
/* CSTYLED */
|
||||
module_param(metaslab_aliquot, ulong, 0644);
|
||||
MODULE_PARM_DESC(metaslab_aliquot,
|
||||
@@ -3904,4 +3904,4 @@ MODULE_PARM_DESC(zfs_metaslab_switch_threshold,
|
||||
module_param(metaslab_force_ganging, ulong, 0644);
|
||||
MODULE_PARM_DESC(metaslab_force_ganging,
|
||||
"blocks larger than this size are forced to be gang blocks");
|
||||
#endif /* _KERNEL && HAVE_SPL */
|
||||
#endif
|
||||
|
||||
+1
-1
@@ -597,7 +597,7 @@ mmp_signal_all_threads(void)
|
||||
mutex_exit(&spa_namespace_lock);
|
||||
}
|
||||
|
||||
#if defined(_KERNEL) && defined(HAVE_SPL)
|
||||
#if defined(_KERNEL)
|
||||
#include <linux/mod_compat.h>
|
||||
|
||||
static int
|
||||
|
||||
@@ -403,7 +403,7 @@ multilist_link_active(multilist_node_t *link)
|
||||
return (list_link_active(link));
|
||||
}
|
||||
|
||||
#if defined(_KERNEL) && defined(HAVE_SPL)
|
||||
#if defined(_KERNEL)
|
||||
|
||||
/* BEGIN CSTYLED */
|
||||
|
||||
|
||||
@@ -38,9 +38,9 @@
|
||||
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/systm.h>
|
||||
#include <sys/pathname.h>
|
||||
#include <sys/kmem.h>
|
||||
#include <sys/sysmacros.h>
|
||||
|
||||
/*
|
||||
* Pathname utilities.
|
||||
|
||||
@@ -28,7 +28,6 @@
|
||||
#include <sys/zfs_context.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
#include <sys/sysmacros.h>
|
||||
#include <sys/dmu.h>
|
||||
#include <sys/dmu_impl.h>
|
||||
|
||||
+3
-7
@@ -85,11 +85,7 @@
|
||||
#ifdef _KERNEL
|
||||
#include <sys/fm/protocol.h>
|
||||
#include <sys/fm/util.h>
|
||||
#include <sys/bootprops.h>
|
||||
#include <sys/callb.h>
|
||||
#include <sys/cpupart.h>
|
||||
#include <sys/pool.h>
|
||||
#include <sys/sysdc.h>
|
||||
#include <sys/zone.h>
|
||||
#endif /* _KERNEL */
|
||||
|
||||
@@ -162,7 +158,6 @@ static int spa_load_impl(spa_t *spa, spa_import_type_t type, char **ereport,
|
||||
static void spa_vdev_resilver_done(spa_t *spa);
|
||||
|
||||
uint_t zio_taskq_batch_pct = 75; /* 1 thread per cpu in pset */
|
||||
id_t zio_taskq_psrset_bind = PS_NONE;
|
||||
boolean_t zio_taskq_sysdc = B_TRUE; /* use SDC scheduling class */
|
||||
uint_t zio_taskq_basedc = 80; /* base duty cycle */
|
||||
|
||||
@@ -1088,6 +1083,7 @@ spa_create_zio_taskqs(spa_t *spa)
|
||||
static void
|
||||
spa_thread(void *arg)
|
||||
{
|
||||
psetid_t zio_taskq_psrset_bind = PS_NONE;
|
||||
callb_cpr_t cprinfo;
|
||||
|
||||
spa_t *spa = arg;
|
||||
@@ -7795,7 +7791,7 @@ spa_event_notify(spa_t *spa, vdev_t *vd, nvlist_t *hist_nvl, const char *name)
|
||||
spa_event_post(spa_event_create(spa, vd, hist_nvl, name));
|
||||
}
|
||||
|
||||
#if defined(_KERNEL) && defined(HAVE_SPL)
|
||||
#if defined(_KERNEL)
|
||||
/* state manipulation functions */
|
||||
EXPORT_SYMBOL(spa_open);
|
||||
EXPORT_SYMBOL(spa_open_rewind);
|
||||
@@ -7852,7 +7848,7 @@ EXPORT_SYMBOL(spa_prop_clear_bootfs);
|
||||
EXPORT_SYMBOL(spa_event_notify);
|
||||
#endif
|
||||
|
||||
#if defined(_KERNEL) && defined(HAVE_SPL)
|
||||
#if defined(_KERNEL)
|
||||
module_param(spa_load_verify_maxinflight, int, 0644);
|
||||
MODULE_PARM_DESC(spa_load_verify_maxinflight,
|
||||
"Max concurrent traversal I/Os while verifying pool during import -X");
|
||||
|
||||
@@ -600,7 +600,7 @@ spa_config_update(spa_t *spa, int what)
|
||||
spa_config_update(spa, SPA_CONFIG_UPDATE_VDEVS);
|
||||
}
|
||||
|
||||
#if defined(_KERNEL) && defined(HAVE_SPL)
|
||||
#if defined(_KERNEL)
|
||||
EXPORT_SYMBOL(spa_config_load);
|
||||
EXPORT_SYMBOL(spa_all_configs);
|
||||
EXPORT_SYMBOL(spa_config_set);
|
||||
|
||||
@@ -404,7 +404,7 @@ spa_errlog_sync(spa_t *spa, uint64_t txg)
|
||||
mutex_exit(&spa->spa_errlog_lock);
|
||||
}
|
||||
|
||||
#if defined(_KERNEL) && defined(HAVE_SPL)
|
||||
#if defined(_KERNEL)
|
||||
/* error handling */
|
||||
EXPORT_SYMBOL(spa_log_error);
|
||||
EXPORT_SYMBOL(spa_get_errlog_size);
|
||||
|
||||
@@ -183,11 +183,7 @@ static char *
|
||||
spa_history_zone(void)
|
||||
{
|
||||
#ifdef _KERNEL
|
||||
#ifdef HAVE_SPL
|
||||
return ("linux");
|
||||
#else
|
||||
return (curproc->p_zone->zone_name);
|
||||
#endif
|
||||
#else
|
||||
return (NULL);
|
||||
#endif
|
||||
@@ -626,7 +622,7 @@ spa_history_log_version(spa_t *spa, const char *operation, dmu_tx_t *tx)
|
||||
u->nodename, u->release, u->version, u->machine);
|
||||
}
|
||||
|
||||
#if defined(_KERNEL) && defined(HAVE_SPL)
|
||||
#if defined(_KERNEL)
|
||||
EXPORT_SYMBOL(spa_history_create_obj);
|
||||
EXPORT_SYMBOL(spa_history_get);
|
||||
EXPORT_SYMBOL(spa_history_log);
|
||||
|
||||
@@ -2254,7 +2254,7 @@ spa_set_missing_tvds(spa_t *spa, uint64_t missing)
|
||||
spa->spa_missing_tvds = missing;
|
||||
}
|
||||
|
||||
#if defined(_KERNEL) && defined(HAVE_SPL)
|
||||
#if defined(_KERNEL)
|
||||
|
||||
#include <linux/mod_compat.h>
|
||||
|
||||
|
||||
@@ -1017,7 +1017,7 @@ spa_stats_destroy(spa_t *spa)
|
||||
spa_mmp_history_destroy(spa);
|
||||
}
|
||||
|
||||
#if defined(_KERNEL) && defined(HAVE_SPL)
|
||||
#if defined(_KERNEL)
|
||||
/* CSTYLED */
|
||||
module_param(zfs_read_history, int, 0644);
|
||||
MODULE_PARM_DESC(zfs_read_history,
|
||||
|
||||
+1
-1
@@ -934,7 +934,7 @@ txg_list_next(txg_list_t *tl, void *p, uint64_t txg)
|
||||
return (tn == NULL ? NULL : (char *)tn - tl->tl_offset);
|
||||
}
|
||||
|
||||
#if defined(_KERNEL) && defined(HAVE_SPL)
|
||||
#if defined(_KERNEL)
|
||||
EXPORT_SYMBOL(txg_init);
|
||||
EXPORT_SYMBOL(txg_fini);
|
||||
EXPORT_SYMBOL(txg_sync_start);
|
||||
|
||||
+1
-1
@@ -4237,7 +4237,7 @@ vdev_deadman(vdev_t *vd, char *tag)
|
||||
}
|
||||
}
|
||||
|
||||
#if defined(_KERNEL) && defined(HAVE_SPL)
|
||||
#if defined(_KERNEL)
|
||||
EXPORT_SYMBOL(vdev_fault);
|
||||
EXPORT_SYMBOL(vdev_degrade);
|
||||
EXPORT_SYMBOL(vdev_online);
|
||||
|
||||
@@ -425,7 +425,7 @@ vdev_cache_stat_fini(void)
|
||||
}
|
||||
}
|
||||
|
||||
#if defined(_KERNEL) && defined(HAVE_SPL)
|
||||
#if defined(_KERNEL)
|
||||
module_param(zfs_vdev_cache_max, int, 0644);
|
||||
MODULE_PARM_DESC(zfs_vdev_cache_max, "Inflate reads small than max");
|
||||
|
||||
|
||||
@@ -33,7 +33,6 @@
|
||||
#include <sys/abd.h>
|
||||
#include <sys/fs/zfs.h>
|
||||
#include <sys/zio.h>
|
||||
#include <sys/sunldi.h>
|
||||
#include <linux/mod_compat.h>
|
||||
|
||||
char *zfs_vdev_scheduler = VDEV_SCHEDULER;
|
||||
|
||||
@@ -1687,7 +1687,7 @@ vdev_ops_t vdev_indirect_ops = {
|
||||
B_FALSE /* leaf vdev */
|
||||
};
|
||||
|
||||
#if defined(_KERNEL) && defined(HAVE_SPL)
|
||||
#if defined(_KERNEL)
|
||||
EXPORT_SYMBOL(rs_alloc);
|
||||
EXPORT_SYMBOL(spa_condense_fini);
|
||||
EXPORT_SYMBOL(spa_start_indirect_condensing_thread);
|
||||
|
||||
@@ -213,7 +213,7 @@ vdev_indirect_births_physbirth(vdev_indirect_births_t *vib, uint64_t offset,
|
||||
return (-1);
|
||||
}
|
||||
|
||||
#if defined(_KERNEL) && defined(HAVE_SPL)
|
||||
#if defined(_KERNEL)
|
||||
EXPORT_SYMBOL(vdev_indirect_births_add_entry);
|
||||
EXPORT_SYMBOL(vdev_indirect_births_alloc);
|
||||
EXPORT_SYMBOL(vdev_indirect_births_close);
|
||||
|
||||
@@ -596,7 +596,7 @@ vdev_indirect_mapping_free_obsolete_counts(vdev_indirect_mapping_t *vim,
|
||||
vmem_free(counts, vim->vim_phys->vimp_num_entries * sizeof (uint32_t));
|
||||
}
|
||||
|
||||
#if defined(_KERNEL) && defined(HAVE_SPL)
|
||||
#if defined(_KERNEL)
|
||||
EXPORT_SYMBOL(vdev_indirect_mapping_add_entries);
|
||||
EXPORT_SYMBOL(vdev_indirect_mapping_alloc);
|
||||
EXPORT_SYMBOL(vdev_indirect_mapping_bytes_mapped);
|
||||
|
||||
@@ -774,7 +774,7 @@ vdev_ops_t vdev_spare_ops = {
|
||||
B_FALSE /* not a leaf vdev */
|
||||
};
|
||||
|
||||
#if defined(_KERNEL) && defined(HAVE_SPL)
|
||||
#if defined(_KERNEL)
|
||||
/* BEGIN CSTYLED */
|
||||
module_param(zfs_vdev_mirror_rotating_inc, int, 0644);
|
||||
MODULE_PARM_DESC(zfs_vdev_mirror_rotating_inc,
|
||||
|
||||
@@ -883,7 +883,7 @@ vdev_queue_last_offset(vdev_t *vd)
|
||||
return (vd->vdev_queue.vq_last_offset);
|
||||
}
|
||||
|
||||
#if defined(_KERNEL) && defined(HAVE_SPL)
|
||||
#if defined(_KERNEL)
|
||||
module_param(zfs_vdev_aggregation_limit, int, 0644);
|
||||
MODULE_PARM_DESC(zfs_vdev_aggregation_limit, "Max vdev I/O aggregation size");
|
||||
|
||||
|
||||
@@ -614,7 +614,7 @@ vdev_raidz_impl_set(const char *val)
|
||||
return (err);
|
||||
}
|
||||
|
||||
#if defined(_KERNEL) && defined(HAVE_SPL)
|
||||
#if defined(_KERNEL)
|
||||
#include <linux/mod_compat.h>
|
||||
|
||||
static int
|
||||
|
||||
@@ -2102,7 +2102,7 @@ spa_removal_get_stats(spa_t *spa, pool_removal_stat_t *prs)
|
||||
return (0);
|
||||
}
|
||||
|
||||
#if defined(_KERNEL) && defined(HAVE_SPL)
|
||||
#if defined(_KERNEL)
|
||||
module_param(zfs_remove_max_segment, int, 0644);
|
||||
MODULE_PARM_DESC(zfs_remove_max_segment,
|
||||
"Largest contiguous segment to allocate when removing device");
|
||||
|
||||
@@ -1629,7 +1629,7 @@ zap_get_stats(objset_t *os, uint64_t zapobj, zap_stats_t *zs)
|
||||
return (0);
|
||||
}
|
||||
|
||||
#if defined(_KERNEL) && defined(HAVE_SPL)
|
||||
#if defined(_KERNEL)
|
||||
EXPORT_SYMBOL(zap_create);
|
||||
EXPORT_SYMBOL(zap_create_dnsize);
|
||||
EXPORT_SYMBOL(zap_create_norm);
|
||||
|
||||
@@ -100,7 +100,6 @@
|
||||
#include <sys/zcp_iter.h>
|
||||
#include <sys/zcp_prop.h>
|
||||
#include <sys/zcp_global.h>
|
||||
#include <util/sscanf.h>
|
||||
|
||||
#ifndef KM_NORMALPRI
|
||||
#define KM_NORMALPRI 0
|
||||
|
||||
@@ -27,9 +27,7 @@
|
||||
#include <sys/types.h>
|
||||
#include <sys/param.h>
|
||||
#include <sys/time.h>
|
||||
#include <sys/systm.h>
|
||||
#include <sys/sysmacros.h>
|
||||
#include <sys/resource.h>
|
||||
#include <sys/vfs.h>
|
||||
#include <sys/vnode.h>
|
||||
#include <sys/sid.h>
|
||||
@@ -38,7 +36,6 @@
|
||||
#include <sys/kmem.h>
|
||||
#include <sys/cmn_err.h>
|
||||
#include <sys/errno.h>
|
||||
#include <sys/unistd.h>
|
||||
#include <sys/sdt.h>
|
||||
#include <sys/fs/zfs.h>
|
||||
#include <sys/mode.h>
|
||||
@@ -54,7 +51,6 @@
|
||||
#include <sys/sa.h>
|
||||
#include <sys/trace_acl.h>
|
||||
#include <sys/zpl.h>
|
||||
#include "fs/fs_subr.h"
|
||||
|
||||
#define ALLOW ACE_ACCESS_ALLOWED_ACE_TYPE
|
||||
#define DENY ACE_ACCESS_DENIED_ACE_TYPE
|
||||
@@ -98,6 +94,8 @@
|
||||
|
||||
#define ALL_MODE_EXECS (S_IXUSR | S_IXGRP | S_IXOTH)
|
||||
|
||||
#define IDMAP_WK_CREATOR_OWNER_UID 2147483648U
|
||||
|
||||
static uint16_t
|
||||
zfs_ace_v0_get_type(void *acep)
|
||||
{
|
||||
|
||||
@@ -198,7 +198,7 @@ zfs_znode_byteswap(void *buf, size_t size)
|
||||
}
|
||||
}
|
||||
|
||||
#if defined(_KERNEL) && defined(HAVE_SPL)
|
||||
#if defined(_KERNEL)
|
||||
EXPORT_SYMBOL(zfs_oldacl_byteswap);
|
||||
EXPORT_SYMBOL(zfs_acl_byteswap);
|
||||
EXPORT_SYMBOL(zfs_znode_byteswap);
|
||||
|
||||
@@ -71,11 +71,9 @@
|
||||
#include <sys/types.h>
|
||||
#include <sys/param.h>
|
||||
#include <sys/time.h>
|
||||
#include <sys/systm.h>
|
||||
#include <sys/sysmacros.h>
|
||||
#include <sys/pathname.h>
|
||||
#include <sys/vfs.h>
|
||||
#include <sys/vfs_opreg.h>
|
||||
#include <sys/zfs_ctldir.h>
|
||||
#include <sys/zfs_ioctl.h>
|
||||
#include <sys/zfs_vfsops.h>
|
||||
@@ -85,7 +83,6 @@
|
||||
#include <sys/dmu_objset.h>
|
||||
#include <sys/dsl_destroy.h>
|
||||
#include <sys/dsl_deleg.h>
|
||||
#include <sys/mount.h>
|
||||
#include <sys/zpl.h>
|
||||
#include "zfs_namecheck.h"
|
||||
|
||||
|
||||
@@ -28,9 +28,7 @@
|
||||
#include <sys/types.h>
|
||||
#include <sys/param.h>
|
||||
#include <sys/time.h>
|
||||
#include <sys/systm.h>
|
||||
#include <sys/sysmacros.h>
|
||||
#include <sys/resource.h>
|
||||
#include <sys/vfs.h>
|
||||
#include <sys/vnode.h>
|
||||
#include <sys/file.h>
|
||||
@@ -41,7 +39,6 @@
|
||||
#include <sys/cmn_err.h>
|
||||
#include <sys/errno.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/unistd.h>
|
||||
#include <sys/sunddi.h>
|
||||
#include <sys/random.h>
|
||||
#include <sys/policy.h>
|
||||
@@ -49,7 +46,6 @@
|
||||
#include <sys/zfs_acl.h>
|
||||
#include <sys/zfs_vnops.h>
|
||||
#include <sys/fs/zfs.h>
|
||||
#include "fs/fs_subr.h"
|
||||
#include <sys/zap.h>
|
||||
#include <sys/dmu.h>
|
||||
#include <sys/atomic.h>
|
||||
@@ -57,8 +53,6 @@
|
||||
#include <sys/zfs_fuid.h>
|
||||
#include <sys/sa.h>
|
||||
#include <sys/zfs_sa.h>
|
||||
#include <sys/dnlc.h>
|
||||
#include <sys/extdirent.h>
|
||||
|
||||
/*
|
||||
* zfs_match_find() is used by zfs_dirent_lock() to peform zap lookups
|
||||
|
||||
+1
-1
@@ -1041,7 +1041,7 @@ zfs_post_state_change(spa_t *spa, vdev_t *vd, uint64_t laststate)
|
||||
#endif
|
||||
}
|
||||
|
||||
#if defined(_KERNEL) && defined(HAVE_SPL)
|
||||
#if defined(_KERNEL)
|
||||
EXPORT_SYMBOL(zfs_ereport_post);
|
||||
EXPORT_SYMBOL(zfs_ereport_post_checksum);
|
||||
EXPORT_SYMBOL(zfs_post_remove);
|
||||
|
||||
@@ -29,7 +29,6 @@
|
||||
#include <sys/refcount.h>
|
||||
#include <sys/nvpair.h>
|
||||
#ifdef _KERNEL
|
||||
#include <sys/kidmap.h>
|
||||
#include <sys/sid.h>
|
||||
#include <sys/zfs_vfsops.h>
|
||||
#include <sys/zfs_znode.h>
|
||||
|
||||
+2
-11
@@ -144,12 +144,8 @@
|
||||
#include <sys/param.h>
|
||||
#include <sys/errno.h>
|
||||
#include <sys/uio.h>
|
||||
#include <sys/buf.h>
|
||||
#include <sys/modctl.h>
|
||||
#include <sys/open.h>
|
||||
#include <sys/file.h>
|
||||
#include <sys/kmem.h>
|
||||
#include <sys/conf.h>
|
||||
#include <sys/cmn_err.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/zfs_ioctl.h>
|
||||
@@ -160,7 +156,6 @@
|
||||
#include <sys/spa_impl.h>
|
||||
#include <sys/vdev.h>
|
||||
#include <sys/vdev_impl.h>
|
||||
#include <sys/priv_impl.h>
|
||||
#include <sys/dmu.h>
|
||||
#include <sys/dsl_dir.h>
|
||||
#include <sys/dsl_dataset.h>
|
||||
@@ -169,14 +164,11 @@
|
||||
#include <sys/dmu_objset.h>
|
||||
#include <sys/dmu_impl.h>
|
||||
#include <sys/dmu_tx.h>
|
||||
#include <sys/ddi.h>
|
||||
#include <sys/sunddi.h>
|
||||
#include <sys/sunldi.h>
|
||||
#include <sys/policy.h>
|
||||
#include <sys/zone.h>
|
||||
#include <sys/nvpair.h>
|
||||
#include <sys/pathname.h>
|
||||
#include <sys/mount.h>
|
||||
#include <sys/sdt.h>
|
||||
#include <sys/fs/zfs.h>
|
||||
#include <sys/zfs_ctldir.h>
|
||||
@@ -184,7 +176,6 @@
|
||||
#include <sys/zfs_onexit.h>
|
||||
#include <sys/zvol.h>
|
||||
#include <sys/dsl_scan.h>
|
||||
#include <sharefs/share.h>
|
||||
#include <sys/fm/util.h>
|
||||
#include <sys/dsl_crypt.h>
|
||||
|
||||
@@ -7115,7 +7106,7 @@ _fini(void)
|
||||
ZFS_META_VERSION, ZFS_META_RELEASE, ZFS_DEBUG_STR);
|
||||
}
|
||||
|
||||
#ifdef HAVE_SPL
|
||||
#if defined(_KERNEL)
|
||||
module_init(_init);
|
||||
module_exit(_fini);
|
||||
|
||||
@@ -7123,4 +7114,4 @@ MODULE_DESCRIPTION("ZFS");
|
||||
MODULE_AUTHOR(ZFS_META_AUTHOR);
|
||||
MODULE_LICENSE(ZFS_META_LICENSE);
|
||||
MODULE_VERSION(ZFS_META_VERSION "-" ZFS_META_RELEASE);
|
||||
#endif /* HAVE_SPL */
|
||||
#endif
|
||||
|
||||
@@ -26,7 +26,6 @@
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
#include <sys/sysmacros.h>
|
||||
#include <sys/cmn_err.h>
|
||||
#include <sys/kmem.h>
|
||||
@@ -45,7 +44,6 @@
|
||||
#include <sys/dmu.h>
|
||||
#include <sys/spa.h>
|
||||
#include <sys/zfs_fuid.h>
|
||||
#include <sys/ddi.h>
|
||||
#include <sys/dsl_dataset.h>
|
||||
|
||||
/*
|
||||
@@ -720,7 +718,7 @@ zfs_log_acl(zilog_t *zilog, dmu_tx_t *tx, znode_t *zp,
|
||||
zil_itx_assign(zilog, itx, tx);
|
||||
}
|
||||
|
||||
#if defined(_KERNEL) && defined(HAVE_SPL)
|
||||
#if defined(_KERNEL)
|
||||
module_param(zfs_immediate_write_sz, long, 0644);
|
||||
MODULE_PARM_DESC(zfs_immediate_write_sz, "Largest data block to write to zil");
|
||||
#endif
|
||||
|
||||
@@ -26,13 +26,9 @@
|
||||
#include <sys/types.h>
|
||||
#include <sys/param.h>
|
||||
#include <sys/errno.h>
|
||||
#include <sys/open.h>
|
||||
#include <sys/kmem.h>
|
||||
#include <sys/conf.h>
|
||||
#include <sys/ddi.h>
|
||||
#include <sys/sunddi.h>
|
||||
#include <sys/zfs_ioctl.h>
|
||||
#include <sys/mkdev.h>
|
||||
#include <sys/zfs_onexit.h>
|
||||
#include <sys/zvol.h>
|
||||
|
||||
|
||||
@@ -26,7 +26,6 @@
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
#include <sys/sysmacros.h>
|
||||
#include <sys/cmn_err.h>
|
||||
#include <sys/kmem.h>
|
||||
|
||||
@@ -96,6 +96,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/zfs_rlock.h>
|
||||
#include <sys/sysmacros.h>
|
||||
|
||||
/*
|
||||
* Check if a write lock can be grabbed, or wait and recheck until available.
|
||||
|
||||
+1
-11
@@ -27,17 +27,13 @@
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
#include <sys/sysmacros.h>
|
||||
#include <sys/kmem.h>
|
||||
#include <sys/pathname.h>
|
||||
#include <sys/vnode.h>
|
||||
#include <sys/vfs.h>
|
||||
#include <sys/vfs_opreg.h>
|
||||
#include <sys/mntent.h>
|
||||
#include <sys/mount.h>
|
||||
#include <sys/cmn_err.h>
|
||||
#include "fs/fs_subr.h"
|
||||
#include <sys/zfs_znode.h>
|
||||
#include <sys/zfs_vnops.h>
|
||||
#include <sys/zfs_dir.h>
|
||||
@@ -51,18 +47,12 @@
|
||||
#include <sys/zap.h>
|
||||
#include <sys/sa.h>
|
||||
#include <sys/sa_impl.h>
|
||||
#include <sys/varargs.h>
|
||||
#include <sys/policy.h>
|
||||
#include <sys/atomic.h>
|
||||
#include <sys/mkdev.h>
|
||||
#include <sys/modctl.h>
|
||||
#include <sys/refstr.h>
|
||||
#include <sys/zfs_ioctl.h>
|
||||
#include <sys/zfs_ctldir.h>
|
||||
#include <sys/zfs_fuid.h>
|
||||
#include <sys/bootconf.h>
|
||||
#include <sys/sunddi.h>
|
||||
#include <sys/dnlc.h>
|
||||
#include <sys/dmu_objset.h>
|
||||
#include <sys/spa_boot.h>
|
||||
#include <sys/zpl.h>
|
||||
@@ -2341,7 +2331,7 @@ zfs_fini(void)
|
||||
zfsctl_fini();
|
||||
}
|
||||
|
||||
#if defined(_KERNEL) && defined(HAVE_SPL)
|
||||
#if defined(_KERNEL)
|
||||
EXPORT_SYMBOL(zfs_suspend_fs);
|
||||
EXPORT_SYMBOL(zfs_resume_fs);
|
||||
EXPORT_SYMBOL(zfs_userspace_one);
|
||||
|
||||
+1
-12
@@ -33,11 +33,8 @@
|
||||
#include <sys/types.h>
|
||||
#include <sys/param.h>
|
||||
#include <sys/time.h>
|
||||
#include <sys/systm.h>
|
||||
#include <sys/sysmacros.h>
|
||||
#include <sys/resource.h>
|
||||
#include <sys/vfs.h>
|
||||
#include <sys/vfs_opreg.h>
|
||||
#include <sys/file.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/kmem.h>
|
||||
@@ -45,11 +42,9 @@
|
||||
#include <sys/uio.h>
|
||||
#include <sys/vmsystm.h>
|
||||
#include <sys/atomic.h>
|
||||
#include <vm/pvn.h>
|
||||
#include <sys/pathname.h>
|
||||
#include <sys/cmn_err.h>
|
||||
#include <sys/errno.h>
|
||||
#include <sys/unistd.h>
|
||||
#include <sys/zfs_dir.h>
|
||||
#include <sys/zfs_acl.h>
|
||||
#include <sys/zfs_ioctl.h>
|
||||
@@ -61,22 +56,16 @@
|
||||
#include <sys/dbuf.h>
|
||||
#include <sys/zap.h>
|
||||
#include <sys/sa.h>
|
||||
#include <sys/dirent.h>
|
||||
#include <sys/policy.h>
|
||||
#include <sys/sunddi.h>
|
||||
#include <sys/sid.h>
|
||||
#include <sys/mode.h>
|
||||
#include "fs/fs_subr.h"
|
||||
#include <sys/zfs_ctldir.h>
|
||||
#include <sys/zfs_fuid.h>
|
||||
#include <sys/zfs_sa.h>
|
||||
#include <sys/zfs_vnops.h>
|
||||
#include <sys/dnlc.h>
|
||||
#include <sys/zfs_rlock.h>
|
||||
#include <sys/extdirent.h>
|
||||
#include <sys/kidmap.h>
|
||||
#include <sys/cred.h>
|
||||
#include <sys/attr.h>
|
||||
#include <sys/zpl.h>
|
||||
#include <sys/zil.h>
|
||||
#include <sys/sa_impl.h>
|
||||
@@ -5234,7 +5223,7 @@ zfs_retzcbuf(struct inode *ip, xuio_t *xuio, cred_t *cr)
|
||||
}
|
||||
#endif /* HAVE_UIO_ZEROCOPY */
|
||||
|
||||
#if defined(_KERNEL) && defined(HAVE_SPL)
|
||||
#if defined(_KERNEL)
|
||||
EXPORT_SYMBOL(zfs_open);
|
||||
EXPORT_SYMBOL(zfs_close);
|
||||
EXPORT_SYMBOL(zfs_read);
|
||||
|
||||
@@ -29,24 +29,17 @@
|
||||
#include <sys/types.h>
|
||||
#include <sys/param.h>
|
||||
#include <sys/time.h>
|
||||
#include <sys/systm.h>
|
||||
#include <sys/sysmacros.h>
|
||||
#include <sys/resource.h>
|
||||
#include <sys/mntent.h>
|
||||
#include <sys/mkdev.h>
|
||||
#include <sys/u8_textprep.h>
|
||||
#include <sys/dsl_dataset.h>
|
||||
#include <sys/vfs.h>
|
||||
#include <sys/vfs_opreg.h>
|
||||
#include <sys/vnode.h>
|
||||
#include <sys/file.h>
|
||||
#include <sys/kmem.h>
|
||||
#include <sys/errno.h>
|
||||
#include <sys/unistd.h>
|
||||
#include <sys/mode.h>
|
||||
#include <sys/atomic.h>
|
||||
#include <vm/pvn.h>
|
||||
#include "fs/fs_subr.h"
|
||||
#include <sys/zfs_dir.h>
|
||||
#include <sys/zfs_acl.h>
|
||||
#include <sys/zfs_ioctl.h>
|
||||
@@ -56,7 +49,6 @@
|
||||
#include <sys/zfs_ctldir.h>
|
||||
#include <sys/dnode.h>
|
||||
#include <sys/fs/zfs.h>
|
||||
#include <sys/kidmap.h>
|
||||
#include <sys/zpl.h>
|
||||
#endif /* _KERNEL */
|
||||
|
||||
@@ -2243,7 +2235,7 @@ zfs_obj_to_stats(objset_t *osp, uint64_t obj, zfs_stat_t *sb,
|
||||
return (error);
|
||||
}
|
||||
|
||||
#if defined(_KERNEL) && defined(HAVE_SPL)
|
||||
#if defined(_KERNEL)
|
||||
EXPORT_SYMBOL(zfs_create_fs);
|
||||
EXPORT_SYMBOL(zfs_obj_to_path);
|
||||
|
||||
|
||||
+1
-2
@@ -32,7 +32,6 @@
|
||||
#include <sys/zap.h>
|
||||
#include <sys/arc.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/resource.h>
|
||||
#include <sys/zil.h>
|
||||
#include <sys/zil_impl.h>
|
||||
#include <sys/dsl_dataset.h>
|
||||
@@ -3406,7 +3405,7 @@ zil_reset(const char *osname, void *arg)
|
||||
return (0);
|
||||
}
|
||||
|
||||
#if defined(_KERNEL) && defined(HAVE_SPL)
|
||||
#if defined(_KERNEL)
|
||||
EXPORT_SYMBOL(zil_alloc);
|
||||
EXPORT_SYMBOL(zil_free);
|
||||
EXPORT_SYMBOL(zil_open);
|
||||
|
||||
+1
-1
@@ -4712,7 +4712,7 @@ zbookmark_subtree_completed(const dnode_phys_t *dnp,
|
||||
last_block) <= 0);
|
||||
}
|
||||
|
||||
#if defined(_KERNEL) && defined(HAVE_SPL)
|
||||
#if defined(_KERNEL)
|
||||
EXPORT_SYMBOL(zio_type_name);
|
||||
EXPORT_SYMBOL(zio_buf_alloc);
|
||||
EXPORT_SYMBOL(zio_data_buf_alloc);
|
||||
|
||||
@@ -32,7 +32,6 @@
|
||||
*/
|
||||
|
||||
#include <sys/zfs_context.h>
|
||||
#include <sys/compress.h>
|
||||
#include <sys/spa.h>
|
||||
#include <sys/zfeature.h>
|
||||
#include <sys/zio.h>
|
||||
|
||||
@@ -2026,7 +2026,7 @@ error:
|
||||
return (ret);
|
||||
}
|
||||
|
||||
#if defined(_KERNEL) && defined(HAVE_SPL)
|
||||
#if defined(_KERNEL)
|
||||
/* BEGIN CSTYLED */
|
||||
module_param(zfs_key_max_salt_uses, ulong, 0644);
|
||||
MODULE_PARM_DESC(zfs_key_max_salt_uses, "Max number of times a salt value "
|
||||
|
||||
@@ -855,7 +855,7 @@ zio_inject_fini(void)
|
||||
rw_destroy(&inject_lock);
|
||||
}
|
||||
|
||||
#if defined(_KERNEL) && defined(HAVE_SPL)
|
||||
#if defined(_KERNEL)
|
||||
EXPORT_SYMBOL(zio_injection_enabled);
|
||||
EXPORT_SYMBOL(zio_inject_fault);
|
||||
EXPORT_SYMBOL(zio_inject_list_next);
|
||||
|
||||
@@ -27,6 +27,7 @@
|
||||
#ifdef CONFIG_COMPAT
|
||||
#include <linux/compat.h>
|
||||
#endif
|
||||
#include <sys/file.h>
|
||||
#include <sys/dmu_objset.h>
|
||||
#include <sys/zfs_vfsops.h>
|
||||
#include <sys/zfs_vnops.h>
|
||||
|
||||
@@ -1498,7 +1498,7 @@ zpl_posix_acl_free(void *arg)
|
||||
* a is not last node, make sure next pointer is set
|
||||
* by the adder and advance the head.
|
||||
*/
|
||||
while (ACCESS_ONCE(a->next) == NULL)
|
||||
while (READ_ONCE(a->next) == NULL)
|
||||
cpu_relax();
|
||||
acl_rel_head = a->next;
|
||||
a->next = freelist;
|
||||
|
||||
+1
-1
@@ -189,7 +189,7 @@ zrl_owner(zrlock_t *zrl)
|
||||
}
|
||||
#endif
|
||||
|
||||
#if defined(_KERNEL) && defined(HAVE_SPL)
|
||||
#if defined(_KERNEL)
|
||||
|
||||
EXPORT_SYMBOL(zrl_add_impl);
|
||||
EXPORT_SYMBOL(zrl_remove);
|
||||
|
||||
Reference in New Issue
Block a user