[PATCH v4 6/6] erofs-utils: get compression algorithms directly on mapping
Gao Xiang
hsiangkao at linux.alibaba.com
Thu Nov 18 17:01:10 AEDT 2021
On Thu, Nov 18, 2021 at 01:51:33PM +0800, Yue Hu wrote:
> On Tue, 16 Nov 2021 17:49:39 +0800
> Gao Xiang <hsiangkao at linux.alibaba.com> 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 <huyue2 at yulong.com>
>
Thanks for the review, will apply to dev branch later.
Thanks,
Gao Xiang
> Thanks.
More information about the Linux-erofs
mailing list