mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-30 10:44:09 +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
@@ -141,7 +141,7 @@ zfsctl_snapshot_alloc(char *full_name, char *full_path, spa_t *spa,
|
||||
se->se_root_dentry = root_dentry;
|
||||
se->se_taskqid = TASKQID_INVALID;
|
||||
|
||||
refcount_create(&se->se_refcount);
|
||||
zfs_refcount_create(&se->se_refcount);
|
||||
|
||||
return (se);
|
||||
}
|
||||
@@ -153,7 +153,7 @@ zfsctl_snapshot_alloc(char *full_name, char *full_path, spa_t *spa,
|
||||
static void
|
||||
zfsctl_snapshot_free(zfs_snapentry_t *se)
|
||||
{
|
||||
refcount_destroy(&se->se_refcount);
|
||||
zfs_refcount_destroy(&se->se_refcount);
|
||||
strfree(se->se_name);
|
||||
strfree(se->se_path);
|
||||
|
||||
@@ -176,7 +176,7 @@ zfsctl_snapshot_hold(zfs_snapentry_t *se)
|
||||
static void
|
||||
zfsctl_snapshot_rele(zfs_snapentry_t *se)
|
||||
{
|
||||
if (refcount_remove(&se->se_refcount, NULL) == 0)
|
||||
if (zfs_refcount_remove(&se->se_refcount, NULL) == 0)
|
||||
zfsctl_snapshot_free(se);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user