Re: [PATCH 4/7] bio-integrity: fix interface for bio_integrity_trim

2017-04-04 Thread Christoph Hellwig
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 bi

[PATCH 4/7] bio-integrity: fix interface for bio_integrity_trim

2017-04-03 Thread Dmitry Monakhov
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 complet