Re: [PATCH] zram: factor out partial IO routine

From: Sergey Senozhatsky
Date: Fri Mar 31 2017 - 00:06:35 EST


Hello,

On (03/31/17 08:33), Minchan Kim wrote:
[..]
> > a bigger side effect is that now we double the amount of lines we need
> > to change in certain patches and, thus, the amount of work - when we
> > add new functionality/fix something in zram_bvec_{write, read} we also
> > would need to touch zram_bvec_partial_{write, read}.
>
> Yes, that is a pain, too. However, I thought it would be more easier
> because as-is partial IO routine is more error-prone to me. :)

yeah, it is quite tricky and a bit difficult. agree.

> > still probably worth it.
> >
> > Reviewed-by: Sergey Senozhatsky <sergey.senozhatsky@xxxxxxxxx>
>
> Thanks for the review.
> so I tried clean-up further to make you happy. :)
>
> How about this?
> It's totally untested and I have no time until Monday next week.
> So, please review with having enough time.

will take a look :)
thanks!

-ss