Print this page
6583 remove whole-process swapping

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/vm/anon.h
          +++ new/usr/src/uts/common/vm/anon.h
↓ open down ↓ 431 lines elided ↑ open up ↑
 432  432  extern void     anon_release(struct anon_hdr *, pgcnt_t);
 433  433  extern struct   anon *anon_get_ptr(struct anon_hdr *, ulong_t);
 434  434  extern ulong_t  *anon_get_slot(struct anon_hdr *, ulong_t);
 435  435  extern struct   anon *anon_get_next_ptr(struct anon_hdr *, ulong_t *);
 436  436  extern int      anon_set_ptr(struct anon_hdr *, ulong_t, struct anon *, int);
 437  437  extern int      anon_copy_ptr(struct anon_hdr *, ulong_t,
 438  438                      struct anon_hdr *, ulong_t, pgcnt_t, int);
 439  439  extern pgcnt_t  anon_grow(struct anon_hdr *, ulong_t *, pgcnt_t, pgcnt_t, int);
 440  440  extern void     anon_array_enter(struct anon_map *, ulong_t,
 441  441                          anon_sync_obj_t *);
 442      -extern int      anon_array_try_enter(struct anon_map *, ulong_t,
 443      -                        anon_sync_obj_t *);
 444  442  extern void     anon_array_exit(anon_sync_obj_t *);
 445  443  
 446  444  /*
 447  445   * anon_resv checks to see if there is enough swap space to fulfill a
 448  446   * request and if so, reserves the appropriate anonymous memory resources.
 449  447   * anon_checkspace just checks to see if there is space to fulfill the request,
 450  448   * without taking any resources.  Both return 1 if successful and 0 if not.
 451  449   *
 452  450   * Macros are provided as anon reservation is usually charged to the zone of
 453  451   * the current process.  In some cases (such as anon reserved by tmpfs), a
↓ open down ↓ 49 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX