]> git.proxmox.com Git - mirror_zfs.git/blobdiff - module/zfs/dsl_dataset.c
module/*.ko: prune .data, global .rodata
[mirror_zfs.git] / module / zfs / dsl_dataset.c
index 4623bcec4ea8f64f083b20154c7611dea43ca8d2..115f3df5d53920673d345fb56e2bd3881adc1f60 100644 (file)
@@ -79,7 +79,7 @@
  * of this setting.
  */
 int zfs_max_recordsize = 1 * 1024 * 1024;
-int zfs_allow_redacted_dataset_mount = 0;
+static int zfs_allow_redacted_dataset_mount = 0;
 
 #define        SWITCH64(x, y) \
        { \
@@ -896,14 +896,14 @@ dsl_dataset_own(dsl_pool_t *dp, const char *name, ds_hold_flags_t flags,
  * and accessed.
  */
 void
-dsl_dataset_long_hold(dsl_dataset_t *ds, void *tag)
+dsl_dataset_long_hold(dsl_dataset_t *ds, const void *tag)
 {
        ASSERT(dsl_pool_config_held(ds->ds_dir->dd_pool));
        (void) zfs_refcount_add(&ds->ds_longholds, tag);
 }
 
 void
-dsl_dataset_long_rele(dsl_dataset_t *ds, void *tag)
+dsl_dataset_long_rele(dsl_dataset_t *ds, const void *tag)
 {
        (void) zfs_refcount_remove(&ds->ds_longholds, tag);
 }