/*
* In order to provide for lock-free concurrent read access
- * to the minor list in zfsdev_get_state_impl(), new entries
+ * to the minor list in zfsdev_get_state(), new entries
* must be completely written before linking them into the
* list whereas existing entries are already linked; the last
* operation must be updating zs_minor (from -1 to the new
return (SET_ERROR(EBADF));
}
-static void *
-zfsdev_get_state_impl(minor_t minor, enum zfsdev_state_type which)
+void *
+zfsdev_get_state(minor_t minor, enum zfsdev_state_type which)
{
zfsdev_state_t *zs;
return (NULL);
}
-void *
-zfsdev_get_state(minor_t minor, enum zfsdev_state_type which)
-{
- void *ptr;
-
- ptr = zfsdev_get_state_impl(minor, which);
-
- return (ptr);
-}
-
/*
* Find a free minor number. The zfsdev_state_list is expected to
* be short since it is only a list of currently open file handles.
for (m = last_minor + 1; m != last_minor; m++) {
if (m > ZFSDEV_MAX_MINOR)
m = 1;
- if (zfsdev_get_state_impl(m, ZST_ALL) == NULL) {
+ if (zfsdev_get_state(m, ZST_ALL) == NULL) {
last_minor = m;
return (m);
}