Lines Matching refs:shm_locality

3565 	lgrp_shm_locality_t	*shm_locality;
3579 shm_locality = amp->locality;
3580 if (shm_locality == NULL)
3582 tree = shm_locality->loc_tree;
3585 shm_locality = vp->v_locality;
3586 if (shm_locality == NULL)
3588 ASSERT(shm_locality->loc_count != 0);
3589 tree = shm_locality->loc_tree;
3600 rw_enter(&shm_locality->loc_lock, RW_READER);
3605 rw_exit(&shm_locality->loc_lock);
3897 lgrp_shm_locality_t *shm_locality;
3913 shm_locality = kmem_alloc(sizeof (*shm_locality),
3915 rw_init(&shm_locality->loc_lock, NULL, RW_DEFAULT,
3917 shm_locality->loc_count = 1; /* not used for amp */
3918 shm_locality->loc_tree = NULL;
3926 rw_destroy(&shm_locality->loc_lock);
3927 kmem_free(shm_locality,
3928 sizeof (*shm_locality));
3930 amp->locality = shm_locality;
3945 shm_locality = kmem_alloc(sizeof (*shm_locality), KM_SLEEP);
3946 rw_init(&shm_locality->loc_lock, NULL, RW_DEFAULT, NULL);
3947 shm_locality->loc_count = 1;
3948 shm_locality->loc_tree = NULL;
3956 vp->v_locality = shm_locality;
3962 rw_destroy(&shm_locality->loc_lock);
3963 kmem_free(shm_locality, sizeof (*shm_locality));
3964 shm_locality = vp->v_locality;
3965 shm_locality->loc_count++;
3976 shm_locality = vp->v_locality;
3977 shm_locality->loc_count++;
4009 lgrp_shm_locality_t *shm_locality;
4019 shm_locality = amp->locality;
4020 shm_locality->loc_count = 0; /* not really used for amp */
4021 rw_destroy(&shm_locality->loc_lock);
4022 lgrp_shm_policy_tree_destroy(shm_locality->loc_tree);
4023 kmem_free(shm_locality, sizeof (*shm_locality));
4033 shm_locality = vp->v_locality;
4034 shm_locality->loc_count--;
4036 if (shm_locality->loc_count == 0) {
4037 rw_destroy(&shm_locality->loc_lock);
4038 lgrp_shm_policy_tree_destroy(shm_locality->loc_tree);
4039 kmem_free(shm_locality, sizeof (*shm_locality));
4139 lgrp_shm_locality_t *shm_locality;
4166 shm_locality = amp->locality;
4174 shm_locality = vp->v_locality;
4175 ASSERT(shm_locality->loc_count != 0);
4192 rw_enter(&shm_locality->loc_lock, RW_WRITER);
4193 tree = shm_locality->loc_tree;
4195 rw_exit(&shm_locality->loc_lock);
4199 rw_enter(&shm_locality->loc_lock, RW_WRITER);
4200 if (shm_locality->loc_tree == NULL) {
4204 shm_locality->loc_tree = tree;
4212 tree = shm_locality->loc_tree;
4372 rw_exit(&shm_locality->loc_lock);