MFC r249012:

Remove unused code.
MFC r249019:

Fix comment formatting.
MFC r249026:

Don't directly dereference userland pointer; instead use kernel pointer
copied in from userspace.  This fixes instant panic when creating CTL LUN
on sparc64.  Not a security problem, since the API is root-only.