Print this page
3752 want more verifiable dbuf user eviction
Submitted by:   Justin Gibbs <justing@spectralogic.com>
Submitted by:   Will Andrews <willa@spectralogic.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/fs/zfs/sys/sa_impl.h
          +++ new/usr/src/uts/common/fs/zfs/sys/sa_impl.h
↓ open down ↓ 201 lines elided ↑ open up ↑
 202  202          SA_REMOVE
 203  203  } sa_data_op_t;
 204  204  
 205  205  /*
 206  206   * Opaque handle used for most sa functions
 207  207   *
 208  208   * This needs to be kept as small as possible.
 209  209   */
 210  210  
 211  211  struct sa_handle {
      212 +        dmu_buf_user_t  db_evict;
 212  213          kmutex_t        sa_lock;
 213  214          dmu_buf_t       *sa_bonus;
 214  215          dmu_buf_t       *sa_spill;
 215  216          objset_t        *sa_os;
 216  217          void            *sa_userp;
 217  218          sa_idx_tab_t    *sa_bonus_tab;   /* idx of bonus */
 218  219          sa_idx_tab_t    *sa_spill_tab; /* only present if spill activated */
 219  220  };
 220  221  
 221  222  #define SA_GET_DB(hdl, type)    \
↓ open down ↓ 67 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX