Lines Matching defs:stat
90 * Add to the appropriate stat variable depending on the request type.
93 static void blkio_add_stat(uint64_t *stat, uint64_t add, bool direction,
97 stat[BLKIO_STAT_WRITE] += add;
99 stat[BLKIO_STAT_READ] += add;
101 stat[BLKIO_STAT_SYNC] += add;
103 stat[BLKIO_STAT_ASYNC] += add;
107 * Decrements the appropriate stat variable if non-zero depending on the
111 static void blkio_check_and_dec_stat(uint64_t *stat, bool direction, bool sync)
114 BUG_ON(stat[BLKIO_STAT_WRITE] == 0);
115 stat[BLKIO_STAT_WRITE]--;
117 BUG_ON(stat[BLKIO_STAT_READ] == 0);
118 stat[BLKIO_STAT_READ]--;
121 BUG_ON(stat[BLKIO_STAT_SYNC] == 0);
122 stat[BLKIO_STAT_SYNC]--;
124 BUG_ON(stat[BLKIO_STAT_ASYNC] == 0);
125 stat[BLKIO_STAT_ASYNC]--;
512 "Possibly incorrect cgroup stat display format");