mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-24 03:08:51 +03:00
Remove dead code
Delete unused functions. Reviewed-by: Ryan Moeller <ryan@iXsystems.com> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Arvind Sankar <nivedita@alum.mit.edu> Closes #10470
This commit is contained in:
committed by
Brian Behlendorf
parent
65c7cc49bf
commit
c3fe42aabd
@@ -1707,25 +1707,3 @@ ace_trivial_common(void *acep, int aclcnt,
|
||||
}
|
||||
return (0);
|
||||
}
|
||||
|
||||
uint64_t
|
||||
ace_walk(void *datap, uint64_t cookie, int aclcnt, uint16_t *flags,
|
||||
uint16_t *type, uint32_t *mask)
|
||||
{
|
||||
ace_t *acep = datap;
|
||||
|
||||
if (cookie >= aclcnt)
|
||||
return (0);
|
||||
|
||||
*flags = acep[cookie].a_flags;
|
||||
*type = acep[cookie].a_type;
|
||||
*mask = acep[cookie++].a_access_mask;
|
||||
|
||||
return (cookie);
|
||||
}
|
||||
|
||||
int
|
||||
ace_trivial(ace_t *acep, int aclcnt)
|
||||
{
|
||||
return (ace_trivial_common(acep, aclcnt, ace_walk));
|
||||
}
|
||||
|
||||
@@ -287,22 +287,6 @@ kstat_delete(kstat_t *ksp)
|
||||
free(ksp, M_KSTAT);
|
||||
}
|
||||
|
||||
void
|
||||
kstat_set_string(char *dst, const char *src)
|
||||
{
|
||||
|
||||
bzero(dst, KSTAT_STRLEN);
|
||||
(void) strncpy(dst, src, KSTAT_STRLEN - 1);
|
||||
}
|
||||
|
||||
void
|
||||
kstat_named_init(kstat_named_t *knp, const char *name, uchar_t data_type)
|
||||
{
|
||||
|
||||
kstat_set_string(knp->name, name);
|
||||
knp->data_type = data_type;
|
||||
}
|
||||
|
||||
void
|
||||
kstat_waitq_enter(kstat_io_t *kiop)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user