Print this page
6583 remove whole-process swapping

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/vm/seg_spt.c
          +++ new/usr/src/uts/common/vm/seg_spt.c
↓ open down ↓ 86 lines elided ↑ open up ↑
  87   87  
  88   88  struct seg_ops segspt_ops = {
  89   89          SEGSPT_BADOP(int),              /* dup */
  90   90          segspt_unmap,
  91   91          segspt_free,
  92   92          SEGSPT_BADOP(int),              /* fault */
  93   93          SEGSPT_BADOP(faultcode_t),      /* faulta */
  94   94          SEGSPT_BADOP(int),              /* setprot */
  95   95          SEGSPT_BADOP(int),              /* checkprot */
  96   96          SEGSPT_BADOP(int),              /* kluster */
  97      -        SEGSPT_BADOP(size_t),           /* swapout */
  98   97          SEGSPT_BADOP(int),              /* sync */
  99   98          SEGSPT_BADOP(size_t),           /* incore */
 100   99          SEGSPT_BADOP(int),              /* lockop */
 101  100          SEGSPT_BADOP(int),              /* getprot */
 102  101          SEGSPT_BADOP(u_offset_t),       /* getoffset */
 103  102          SEGSPT_BADOP(int),              /* gettype */
 104  103          SEGSPT_BADOP(int),              /* getvp */
 105  104          SEGSPT_BADOP(int),              /* advise */
 106  105          SEGSPT_BADOP(void),             /* dump */
 107  106          SEGSPT_BADOP(int),              /* pagelock */
↓ open down ↓ 8 lines elided ↑ open up ↑
 116  115  static int segspt_shmunmap(struct seg *seg, caddr_t raddr, size_t ssize);
 117  116  static void segspt_shmfree(struct seg *seg);
 118  117  static faultcode_t segspt_shmfault(struct hat *hat, struct seg *seg,
 119  118                  caddr_t addr, size_t len, enum fault_type type, enum seg_rw rw);
 120  119  static faultcode_t segspt_shmfaulta(struct seg *seg, caddr_t addr);
 121  120  static int segspt_shmsetprot(register struct seg *seg, register caddr_t addr,
 122  121                          register size_t len, register uint_t prot);
 123  122  static int segspt_shmcheckprot(struct seg *seg, caddr_t addr, size_t size,
 124  123                          uint_t prot);
 125  124  static int      segspt_shmkluster(struct seg *seg, caddr_t addr, ssize_t delta);
 126      -static size_t   segspt_shmswapout(struct seg *seg);
 127  125  static size_t segspt_shmincore(struct seg *seg, caddr_t addr, size_t len,
 128  126                          register char *vec);
 129  127  static int segspt_shmsync(struct seg *seg, register caddr_t addr, size_t len,
 130  128                          int attr, uint_t flags);
 131  129  static int segspt_shmlockop(struct seg *seg, caddr_t addr, size_t len,
 132  130                          int attr, int op, ulong_t *lockmap, size_t pos);
 133  131  static int segspt_shmgetprot(struct seg *seg, caddr_t addr, size_t len,
 134  132                          uint_t *protv);
 135  133  static u_offset_t segspt_shmgetoffset(struct seg *seg, caddr_t addr);
 136  134  static int segspt_shmgettype(struct seg *seg, caddr_t addr);
↓ open down ↓ 10 lines elided ↑ open up ↑
 147  145  
 148  146  struct seg_ops segspt_shmops = {
 149  147          segspt_shmdup,
 150  148          segspt_shmunmap,
 151  149          segspt_shmfree,
 152  150          segspt_shmfault,
 153  151          segspt_shmfaulta,
 154  152          segspt_shmsetprot,
 155  153          segspt_shmcheckprot,
 156  154          segspt_shmkluster,
 157      -        segspt_shmswapout,
 158  155          segspt_shmsync,
 159  156          segspt_shmincore,
 160  157          segspt_shmlockop,
 161  158          segspt_shmgetprot,
 162  159          segspt_shmgetoffset,
 163  160          segspt_shmgettype,
 164  161          segspt_shmgetvp,
 165  162          segspt_shmadvise,       /* advise */
 166  163          segspt_shmdump,
 167  164          segspt_shmpagelock,
↓ open down ↓ 2064 lines elided ↑ open up ↑
2232 2229  /*ARGSUSED*/
2233 2230  static faultcode_t
2234 2231  segspt_shmfaulta(struct seg *seg, caddr_t addr)
2235 2232  {
2236 2233          return (0);
2237 2234  }
2238 2235  
2239 2236  /*ARGSUSED*/
2240 2237  static int
2241 2238  segspt_shmkluster(struct seg *seg, caddr_t addr, ssize_t delta)
2242      -{
2243      -        return (0);
2244      -}
2245      -
2246      -/*ARGSUSED*/
2247      -static size_t
2248      -segspt_shmswapout(struct seg *seg)
2249 2239  {
2250 2240          return (0);
2251 2241  }
2252 2242  
2253 2243  /*
2254 2244   * duplicate the shared page tables
2255 2245   */
2256 2246  int
2257 2247  segspt_shmdup(struct seg *seg, struct seg *newseg)
2258 2248  {
↓ open down ↓ 837 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX