Print this page
6583 remove whole-process swapping

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/vm/seg.h
          +++ new/usr/src/uts/common/vm/seg.h
↓ open down ↓ 116 lines elided ↑ open up ↑
 117  117  struct  seg_ops {
 118  118          int     (*dup)(struct seg *, struct seg *);
 119  119          int     (*unmap)(struct seg *, caddr_t, size_t);
 120  120          void    (*free)(struct seg *);
 121  121          faultcode_t (*fault)(struct hat *, struct seg *, caddr_t, size_t,
 122  122              enum fault_type, enum seg_rw);
 123  123          faultcode_t (*faulta)(struct seg *, caddr_t);
 124  124          int     (*setprot)(struct seg *, caddr_t, size_t, uint_t);
 125  125          int     (*checkprot)(struct seg *, caddr_t, size_t, uint_t);
 126  126          int     (*kluster)(struct seg *, caddr_t, ssize_t);
 127      -        size_t  (*swapout)(struct seg *);
 128  127          int     (*sync)(struct seg *, caddr_t, size_t, int, uint_t);
 129  128          size_t  (*incore)(struct seg *, caddr_t, size_t, char *);
 130  129          int     (*lockop)(struct seg *, caddr_t, size_t, int, int, ulong_t *,
 131  130                          size_t);
 132  131          int     (*getprot)(struct seg *, caddr_t, size_t, uint_t *);
 133  132          u_offset_t      (*getoffset)(struct seg *, caddr_t);
 134  133          int     (*gettype)(struct seg *, caddr_t);
 135  134          int     (*getvp)(struct seg *, caddr_t, struct vnode **);
 136  135          int     (*advise)(struct seg *, caddr_t, size_t, uint_t);
 137  136          void    (*dump)(struct seg *);
↓ open down ↓ 74 lines elided ↑ open up ↑
 212  211  
 213  212  #define SEGOP_DUP(s, n)             (*(s)->s_ops->dup)((s), (n))
 214  213  #define SEGOP_UNMAP(s, a, l)        (*(s)->s_ops->unmap)((s), (a), (l))
 215  214  #define SEGOP_FREE(s)               (*(s)->s_ops->free)((s))
 216  215  #define SEGOP_FAULT(h, s, a, l, t, rw) \
 217  216                  (*(s)->s_ops->fault)((h), (s), (a), (l), (t), (rw))
 218  217  #define SEGOP_FAULTA(s, a)          (*(s)->s_ops->faulta)((s), (a))
 219  218  #define SEGOP_SETPROT(s, a, l, p)   (*(s)->s_ops->setprot)((s), (a), (l), (p))
 220  219  #define SEGOP_CHECKPROT(s, a, l, p) (*(s)->s_ops->checkprot)((s), (a), (l), (p))
 221  220  #define SEGOP_KLUSTER(s, a, d)      (*(s)->s_ops->kluster)((s), (a), (d))
 222      -#define SEGOP_SWAPOUT(s)            (*(s)->s_ops->swapout)((s))
 223  221  #define SEGOP_SYNC(s, a, l, atr, f) \
 224  222                  (*(s)->s_ops->sync)((s), (a), (l), (atr), (f))
 225  223  #define SEGOP_INCORE(s, a, l, v)    (*(s)->s_ops->incore)((s), (a), (l), (v))
 226  224  #define SEGOP_LOCKOP(s, a, l, atr, op, b, p) \
 227  225                  (*(s)->s_ops->lockop)((s), (a), (l), (atr), (op), (b), (p))
 228  226  #define SEGOP_GETPROT(s, a, l, p)   (*(s)->s_ops->getprot)((s), (a), (l), (p))
 229  227  #define SEGOP_GETOFFSET(s, a)       (*(s)->s_ops->getoffset)((s), (a))
 230  228  #define SEGOP_GETTYPE(s, a)         (*(s)->s_ops->gettype)((s), (a))
 231  229  #define SEGOP_GETVP(s, a, vpp)      (*(s)->s_ops->getvp)((s), (a), (vpp))
 232  230  #define SEGOP_ADVISE(s, a, l, b)    (*(s)->s_ops->advise)((s), (a), (l), (b))
↓ open down ↓ 55 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX