Print this page
6148 lgrp: getpolicy seg op has been around long enough
*** 3499,3520 ****
* Get memory allocation policy for this segment
*/
lgrp_mem_policy_info_t *
lgrp_mem_policy_get(struct seg *seg, caddr_t vaddr)
{
- extern struct seg_ops segspt_ops;
- extern struct seg_ops segspt_shmops;
-
- /*
- * This is for binary compatibility to protect against third party
- * segment drivers which haven't recompiled to allow for
- * segop_getpolicy()
- */
- if (seg->s_ops != &segvn_ops && seg->s_ops != &segspt_ops &&
- seg->s_ops != &segspt_shmops)
- return (NULL);
-
return (segop_getpolicy(seg, vaddr));
}
/*
* Set policy for allocating private memory given desired policy, policy info,
--- 3499,3508 ----