On (23/04/04 17:05), Christoph Hellwig wrote: > @@ -1939,23 +1939,23 @@ static int zram_bvec_rw(struct zram *zram, struct bio_vec *bvec, u32 index, > > if (!op_is_write(op)) { > ret = zram_bvec_read(zram, bvec, index, offset, bio); > + if (unlikely(ret < 0)) { > + atomic64_inc(&zram->stats.failed_writes); This is !op_is_write() so we need to increment ->failed_reads > + return ret; > + } > flush_dcache_page(bvec->bv_page); > } else { > ret = zram_bvec_write(zram, bvec, index, offset, bio); > + if (unlikely(ret < 0)) { > + atomic64_inc(&zram->stats.failed_reads); and ->failed_writes here. > + return ret; > + } > }