Print this page
patch lower-case-segops

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/syscall/utssys.c
          +++ new/usr/src/uts/common/syscall/utssys.c
↓ open down ↓ 534 lines elided ↑ open up ↑
 535  535                          struct as       *as = prp->p_as;
 536  536  
 537  537                          AS_LOCK_ENTER(as, &as->a_lock, RW_READER);
 538  538                          for (seg = AS_SEGFIRST(as); seg;
 539  539                              seg = AS_SEGNEXT(as, seg)) {
 540  540                                  /*
 541  541                                   * if we can't get a backing vnode for this
 542  542                                   * segment then skip it
 543  543                                   */
 544  544                                  vp = NULL;
 545      -                                if ((SEGOP_GETVP(seg, seg->s_base, &vp)) ||
      545 +                                if ((segop_getvp(seg, seg->s_base, &vp)) ||
 546  546                                      (vp == NULL))
 547  547                                          continue;
 548  548  
 549  549                                  /*
 550  550                                   * if the target file (fvp) is not a device
 551  551                                   * and corrosponds to the root of a filesystem
 552  552                                   * (cvfsp), then check if it contains the
 553  553                                   * vnode backing this segment (vp).
 554  554                                   */
 555  555                                  if (contained && (vp->v_vfsp == cvfsp)) {
↓ open down ↓ 399 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX