mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-25 19:57:43 +03:00
Prefix all refcount functions with zfs_
Recent changes in the Linux kernel made it necessary to prefix the refcount_add() function with zfs_ due to a name collision. To bring the other functions in line with that and to avoid future collisions, prefix the other refcount functions as well. Reviewed by: Matthew Ahrens <mahrens@delphix.com> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Tim Schumacher <timschumi@gmx.de> Closes #7963
This commit is contained in:
committed by
Brian Behlendorf
parent
fc23d59fa0
commit
424fd7c3e0
@@ -1314,8 +1314,8 @@ scan_prefetch_queue_compare(const void *a, const void *b)
|
||||
static void
|
||||
scan_prefetch_ctx_rele(scan_prefetch_ctx_t *spc, void *tag)
|
||||
{
|
||||
if (refcount_remove(&spc->spc_refcnt, tag) == 0) {
|
||||
refcount_destroy(&spc->spc_refcnt);
|
||||
if (zfs_refcount_remove(&spc->spc_refcnt, tag) == 0) {
|
||||
zfs_refcount_destroy(&spc->spc_refcnt);
|
||||
kmem_free(spc, sizeof (scan_prefetch_ctx_t));
|
||||
}
|
||||
}
|
||||
@@ -1326,7 +1326,7 @@ scan_prefetch_ctx_create(dsl_scan_t *scn, dnode_phys_t *dnp, void *tag)
|
||||
scan_prefetch_ctx_t *spc;
|
||||
|
||||
spc = kmem_alloc(sizeof (scan_prefetch_ctx_t), KM_SLEEP);
|
||||
refcount_create(&spc->spc_refcnt);
|
||||
zfs_refcount_create(&spc->spc_refcnt);
|
||||
zfs_refcount_add(&spc->spc_refcnt, tag);
|
||||
spc->spc_scn = scn;
|
||||
if (dnp != NULL) {
|
||||
|
||||
Reference in New Issue
Block a user