aboutsummaryrefslogtreecommitdiffstats
path: root/module/zfs/dsl_bookmark.c
diff options
context:
space:
mode:
authorнаб <[email protected]>2022-04-19 20:49:30 +0200
committerBrian Behlendorf <[email protected]>2022-06-29 14:08:59 -0700
commitdd66857d92d86643bda57b92fdd58f016bd1725e (patch)
tree9048c7e8ea0821c264cbaab4ee5a29379393ddbf /module/zfs/dsl_bookmark.c
parenta926aab902ac5c680f4766568d19674b80fb58bb (diff)
Remaining {=> const} char|void *tag
Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Ahelenia Ziemiańska <[email protected]> Closes #13348
Diffstat (limited to 'module/zfs/dsl_bookmark.c')
-rw-r--r--module/zfs/dsl_bookmark.c18
1 files changed, 10 insertions, 8 deletions
diff --git a/module/zfs/dsl_bookmark.c b/module/zfs/dsl_bookmark.c
index 4e44b167f..8ca7ba895 100644
--- a/module/zfs/dsl_bookmark.c
+++ b/module/zfs/dsl_bookmark.c
@@ -37,7 +37,7 @@
static int
dsl_bookmark_hold_ds(dsl_pool_t *dp, const char *fullname,
- dsl_dataset_t **dsp, void *tag, char **shortnamep)
+ dsl_dataset_t **dsp, const void *tag, char **shortnamep)
{
char buf[ZFS_MAX_DATASET_NAME_LEN];
char *hashp;
@@ -438,8 +438,8 @@ dsl_bookmark_node_add(dsl_dataset_t *hds, dsl_bookmark_node_t *dbn,
*/
static void
dsl_bookmark_create_sync_impl_snap(const char *bookmark, const char *snapshot,
- dmu_tx_t *tx, uint64_t num_redact_snaps, uint64_t *redact_snaps, void *tag,
- redaction_list_t **redaction_list)
+ dmu_tx_t *tx, uint64_t num_redact_snaps, uint64_t *redact_snaps,
+ const void *tag, redaction_list_t **redaction_list)
{
dsl_pool_t *dp = dmu_tx_pool(tx);
objset_t *mos = dp->dp_meta_objset;
@@ -664,7 +664,8 @@ dsl_bookmark_create_redacted_sync(void *arg, dmu_tx_t *tx)
int
dsl_bookmark_create_redacted(const char *bookmark, const char *snapshot,
- uint64_t numsnaps, uint64_t *snapguids, void *tag, redaction_list_t **rl)
+ uint64_t numsnaps, uint64_t *snapguids, const void *tag,
+ redaction_list_t **rl)
{
dsl_bookmark_create_redacted_arg_t dbcra;
@@ -1188,14 +1189,15 @@ dsl_redaction_list_long_held(redaction_list_t *rl)
}
void
-dsl_redaction_list_long_hold(dsl_pool_t *dp, redaction_list_t *rl, void *tag)
+dsl_redaction_list_long_hold(dsl_pool_t *dp, redaction_list_t *rl,
+ const void *tag)
{
ASSERT(dsl_pool_config_held(dp));
(void) zfs_refcount_add(&rl->rl_longholds, tag);
}
void
-dsl_redaction_list_long_rele(redaction_list_t *rl, void *tag)
+dsl_redaction_list_long_rele(redaction_list_t *rl, const void *tag)
{
(void) zfs_refcount_remove(&rl->rl_longholds, tag);
}
@@ -1210,13 +1212,13 @@ redaction_list_evict_sync(void *rlu)
}
void
-dsl_redaction_list_rele(redaction_list_t *rl, void *tag)
+dsl_redaction_list_rele(redaction_list_t *rl, const void *tag)
{
dmu_buf_rele(rl->rl_dbuf, tag);
}
int
-dsl_redaction_list_hold_obj(dsl_pool_t *dp, uint64_t rlobj, void *tag,
+dsl_redaction_list_hold_obj(dsl_pool_t *dp, uint64_t rlobj, const void *tag,
redaction_list_t **rlp)
{
objset_t *mos = dp->dp_meta_objset;