struct vm_map_entry *entry;
vm_map_entry_t entry;
amap_share_protect(entry, prot)	struct vm_map_entry *entry;	vm_prot_t prot;{	struct vm_amap *amap = entry->aref.ar_amap;	int slots, lcv, slot, stop;	LOCK_ASSERT(simple_lock_held(&amap->am_l));	AMAP_B2SLOT(slots, (entry->end - entry->start));	stop = entry->aref.ar_pageoff + slots;	if (slots < amap->am_nused) {		/* cheaper to traverse am_anon */		for (lcv = entry->aref.ar_pageoff ; lcv < stop ; lcv++) {			if (amap->am_anon[lcv] == NULL)				continue;			if (amap->am_anon[lcv]->u.an_page != NULL)				pmap_page_protect(amap->am_anon[lcv]->u.an_page,						  prot);		}		return;	}	/* cheaper to traverse am_slots */	for (lcv = 0 ; lcv < amap->am_nused ; lcv++) {		slot = amap->am_slots[lcv];		if (slot < entry->aref.ar_pageoff || slot >= stop)			continue;		if (amap->am_anon[slot]->u.an_page != NULL)			pmap_page_protect(amap->am_anon[slot]->u.an_page, prot);	}	return;}