Re: [PATCH 1/9] btrfs: use bio iterators for the decompression handlers

2016-11-22 Thread Liu Bo
On Tue, Nov 22, 2016 at 01:38:46AM -0800, Christoph Hellwig wrote: > On Fri, Nov 18, 2016 at 05:29:06PM -0800, Liu Bo wrote: > > On Wed, Nov 16, 2016 at 01:52:08PM +0100, Christoph Hellwig wrote: > > > Pass the full bio to the decompression routines and use bio iterators > > > to iterate over the d

Re: [PATCH 1/9] btrfs: use bio iterators for the decompression handlers

2016-11-22 Thread Christoph Hellwig
On Fri, Nov 18, 2016 at 05:29:06PM -0800, Liu Bo wrote: > On Wed, Nov 16, 2016 at 01:52:08PM +0100, Christoph Hellwig wrote: > > Pass the full bio to the decompression routines and use bio iterators > > to iterate over the data in the bio. > > One question below, It would be nice to cut down the

Re: [PATCH 1/9] btrfs: use bio iterators for the decompression handlers

2016-11-18 Thread Liu Bo
On Wed, Nov 16, 2016 at 01:52:08PM +0100, Christoph Hellwig wrote: > Pass the full bio to the decompression routines and use bio iterators > to iterate over the data in the bio. One question below, > > Signed-off-by: Christoph Hellwig > --- > fs/btrfs/compression.c | 122 > +--

[PATCH 1/9] btrfs: use bio iterators for the decompression handlers

2016-11-16 Thread Christoph Hellwig
Pass the full bio to the decompression routines and use bio iterators to iterate over the data in the bio. Signed-off-by: Christoph Hellwig --- fs/btrfs/compression.c | 122 + fs/btrfs/compression.h | 12 ++--- fs/btrfs/lzo.c | 17 ++-