On Thu, Nov 18, 2021 at 01:51:33PM +0800, Yue Hu wrote:
> On Tue, 16 Nov 2021 17:49:39 +0800
> Gao Xiang <[email protected]> wrote:
...
> > map->m_pa = blknr_to_addr(m.pblk);
> > - map->m_flags |= EROFS_MAP_MAPPED;
> >
> > err = z_erofs_get_extent_compressedlen(&m, initial_lcn);
> > if (err)
> > goto out;
> >
> > + if (m.headtype == Z_EROFS_VLE_CLUSTER_TYPE_PLAIN)
> > + map->m_algorithmformat = Z_EROFS_COMPRESSION_SHIFTED;
> > + else
> > + map->m_algorithmformat = vi->z_algorithmtype[0];
> > +
> > if (flags & EROFS_GET_BLOCKS_FIEMAP) {
> > err = z_erofs_get_extent_decompressedlen(&m);
> > if (!err)
>
> Reviewed-by: Yue Hu <[email protected]>
>
Thanks for the review, will apply to dev branch later.
Thanks,
Gao Xiang
> Thanks.