Re: [PATCH 4/7] bio-integrity: fix interface for bio_integrity_trim
From: Christoph Hellwig
Date: Tue Apr 04 2017 - 03:03:56 EST
On Mon, Apr 03, 2017 at 11:23:29AM +0400, Dmitry Monakhov wrote:
> bio_integrity_trim inherent it's interface from bio_trim and accept
> offset and size, but this API is error prone because data offset
> must always be insync with bio's data offset. That is why we have
> integrity update hook in bio_advance()
>
> So only meaningful offset is 0. Let's just remove it completely.
I think we can get rid of size as well and derive it from the bio,
can't we?