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 ↓ 21 lines elided ↑ open up ↑
  22   22  
  23   23  /*
  24   24   * Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
  25   25   * Use is subject to license terms.
  26   26   */
  27   27  
  28   28  /*      Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
  29   29  /*        All Rights Reserved   */
  30   30  
  31   31  
  32      -#pragma ident   "%Z%%M% %I%     %E% SMI"
  33      -
  34   32  #include <sys/param.h>
  35   33  #include <sys/inttypes.h>
  36   34  #include <sys/types.h>
  37   35  #include <sys/sysmacros.h>
  38   36  #include <sys/systm.h>
  39   37  #include <sys/user.h>
  40   38  #include <sys/errno.h>
  41   39  #include <sys/vfs.h>
  42   40  #include <sys/vnode.h>
  43   41  #include <sys/file.h>
↓ open down ↓ 491 lines elided ↑ open up ↑
 535  533                          struct as       *as = prp->p_as;
 536  534  
 537  535                          AS_LOCK_ENTER(as, &as->a_lock, RW_READER);
 538  536                          for (seg = AS_SEGFIRST(as); seg;
 539  537                              seg = AS_SEGNEXT(as, seg)) {
 540  538                                  /*
 541  539                                   * if we can't get a backing vnode for this
 542  540                                   * segment then skip it
 543  541                                   */
 544  542                                  vp = NULL;
 545      -                                if ((SEGOP_GETVP(seg, seg->s_base, &vp)) ||
      543 +                                if ((segop_getvp(seg, seg->s_base, &vp)) ||
 546  544                                      (vp == NULL))
 547  545                                          continue;
 548  546  
 549  547                                  /*
 550  548                                   * if the target file (fvp) is not a device
 551  549                                   * and corrosponds to the root of a filesystem
 552  550                                   * (cvfsp), then check if it contains the
 553  551                                   * vnode backing this segment (vp).
 554  552                                   */
 555  553                                  if (contained && (vp->v_vfsp == cvfsp)) {
↓ open down ↓ 399 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX