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