Re: [PATCH 1/2] zram: Less checks in zram_bvec_write() after error detection

From: Sergey Senozhatsky
Date: Mon Dec 14 2015 - 05:02:27 EST

On (12/14/15 07:58), SF Markus Elfring wrote:
> > keep it the way it is please.
> I suggest to make the affected exception handling a bit more efficient.
> Such source code fine-tuning has got a few special consequences.

by 'more efficient' you mean saving cpu cycles on 'bvec->bv_len != PAGE_SIZE'
comparison in exception/error path?

if (zstrm)
zcomp_strm_release(zram->comp, zstrm);
if (is_partial_io(bvec)) {


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at