mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-25 11:47:43 +03:00
Remaining {=> const} char|void *tag
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Closes #13348
This commit is contained in:
@@ -1505,7 +1505,7 @@ scan_prefetch_queue_compare(const void *a, const void *b)
|
||||
}
|
||||
|
||||
static void
|
||||
scan_prefetch_ctx_rele(scan_prefetch_ctx_t *spc, void *tag)
|
||||
scan_prefetch_ctx_rele(scan_prefetch_ctx_t *spc, const void *tag)
|
||||
{
|
||||
if (zfs_refcount_remove(&spc->spc_refcnt, tag) == 0) {
|
||||
zfs_refcount_destroy(&spc->spc_refcnt);
|
||||
@@ -1514,7 +1514,7 @@ scan_prefetch_ctx_rele(scan_prefetch_ctx_t *spc, void *tag)
|
||||
}
|
||||
|
||||
static scan_prefetch_ctx_t *
|
||||
scan_prefetch_ctx_create(dsl_scan_t *scn, dnode_phys_t *dnp, void *tag)
|
||||
scan_prefetch_ctx_create(dsl_scan_t *scn, dnode_phys_t *dnp, const void *tag)
|
||||
{
|
||||
scan_prefetch_ctx_t *spc;
|
||||
|
||||
@@ -1536,7 +1536,7 @@ scan_prefetch_ctx_create(dsl_scan_t *scn, dnode_phys_t *dnp, void *tag)
|
||||
}
|
||||
|
||||
static void
|
||||
scan_prefetch_ctx_add_ref(scan_prefetch_ctx_t *spc, void *tag)
|
||||
scan_prefetch_ctx_add_ref(scan_prefetch_ctx_t *spc, const void *tag)
|
||||
{
|
||||
zfs_refcount_add(&spc->spc_refcnt, tag);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user