It looks like zfs_destroy_snaps_nvl wants g_zfs as its first arg.