Lines Matching defs:sth

218 	spa_txg_history_t *sth = (spa_txg_history_t *)data;
222 switch (sth->state) {
232 if (sth->times[TXG_STATE_OPEN])
233 open = sth->times[TXG_STATE_OPEN] -
234 sth->times[TXG_STATE_BIRTH];
236 if (sth->times[TXG_STATE_QUIESCED])
237 quiesce = sth->times[TXG_STATE_QUIESCED] -
238 sth->times[TXG_STATE_OPEN];
240 if (sth->times[TXG_STATE_WAIT_FOR_SYNC])
241 wait = sth->times[TXG_STATE_WAIT_FOR_SYNC] -
242 sth->times[TXG_STATE_QUIESCED];
244 if (sth->times[TXG_STATE_SYNCED])
245 sync = sth->times[TXG_STATE_SYNCED] -
246 sth->times[TXG_STATE_WAIT_FOR_SYNC];
250 (longlong_t)sth->txg, sth->times[TXG_STATE_BIRTH], state,
251 (u_longlong_t)sth->ndirty,
252 (u_longlong_t)sth->nread, (u_longlong_t)sth->nwritten,
253 (u_longlong_t)sth->reads, (u_longlong_t)sth->writes,
264 spa_txg_history_t *sth;
266 sth = list_remove_head(&shl->procfs_list.pl_list);
267 ASSERT3P(sth, !=, NULL);
268 kmem_free(sth, sizeof (spa_txg_history_t));
321 spa_txg_history_t *sth;
326 sth = kmem_zalloc(sizeof (spa_txg_history_t), KM_SLEEP);
327 sth->txg = txg;
328 sth->state = TXG_STATE_OPEN;
329 sth->times[TXG_STATE_BIRTH] = birth_time;
332 procfs_list_add(&shl->procfs_list, sth);
346 spa_txg_history_t *sth;
353 for (sth = list_tail(&shl->procfs_list.pl_list); sth != NULL;
354 sth = list_prev(&shl->procfs_list.pl_list, sth)) {
355 if (sth->txg == txg) {
356 sth->times[completed_state] = completed_time;
357 sth->state++;
375 spa_txg_history_t *sth;
382 for (sth = list_tail(&shl->procfs_list.pl_list); sth != NULL;
383 sth = list_prev(&shl->procfs_list.pl_list, sth)) {
384 if (sth->txg == txg) {
385 sth->nread = nread;
386 sth->nwritten = nwritten;
387 sth->reads = reads;
388 sth->writes = writes;
389 sth->ndirty = ndirty;