Print this page
7938 Port ZOL #3712 disable LBA weighting on files and SSDs

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/fs/zfs/sys/vdev_impl.h
          +++ new/usr/src/uts/common/fs/zfs/sys/vdev_impl.h
↓ open down ↓ 145 lines elided ↑ open up ↑
 146  146          void            *vdev_tsd;      /* type-specific data           */
 147  147          vnode_t         *vdev_name_vp;  /* vnode for pathname           */
 148  148          vnode_t         *vdev_devid_vp; /* vnode for devid              */
 149  149          vdev_t          *vdev_top;      /* top-level vdev               */
 150  150          vdev_t          *vdev_parent;   /* parent vdev                  */
 151  151          vdev_t          **vdev_child;   /* array of children            */
 152  152          uint64_t        vdev_children;  /* number of children           */
 153  153          vdev_stat_t     vdev_stat;      /* virtual device statistics    */
 154  154          boolean_t       vdev_expanding; /* expand the vdev?             */
 155  155          boolean_t       vdev_reopening; /* reopen in progress?          */
      156 +        boolean_t       vdev_nonrot;    /* true if SSD, file, or Virtio */
 156  157          int             vdev_open_error; /* error on last open          */
 157  158          kthread_t       *vdev_open_thread; /* thread opening children   */
 158  159          uint64_t        vdev_crtxg;     /* txg when top-level was added */
 159  160  
 160  161          /*
 161  162           * Top-level vdev state.
 162  163           */
 163  164          uint64_t        vdev_ms_array;  /* metaslab array object        */
 164  165          uint64_t        vdev_ms_shift;  /* metaslab size shift          */
 165  166          uint64_t        vdev_ms_count;  /* number of metaslabs          */
↓ open down ↓ 207 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX