[PATCH] erofs-utils: mkfs: clear 'h_idata_size' when drop inline pcluster
Gao Xiang
hsiangkao at linux.alibaba.com
Thu Aug 18 16:09:48 AEST 2022
On Thu, Aug 18, 2022 at 10:35:09AM +0800, zbestahu at gmail.com wrote:
> From: Yue Hu <huyue2 at coolpad.com>
>
> The value of 'h_idata_size' should be zero if no inline pcluster.
>
> Signed-off-by: Yue Hu <huyue2 at coolpad.com>
Reviewed-by: Gao Xiang <hsiangkao at linux.alibaba.com>
Thanks,
Gao Xiang
> ---
> lib/compress.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/lib/compress.c b/lib/compress.c
> index ee3b856..2453d0a 100644
> --- a/lib/compress.c
> +++ b/lib/compress.c
> @@ -565,6 +565,7 @@ void z_erofs_drop_inline_pcluster(struct erofs_inode *inode)
>
> h->h_advise = cpu_to_le16(le16_to_cpu(h->h_advise) &
> ~Z_EROFS_ADVISE_INLINE_PCLUSTER);
> + h->h_idata_size = 0;
> if (!inode->eof_tailraw)
> return;
> DBG_BUGON(inode->compressed_idata != true);
> --
> 2.17.1
More information about the Linux-erofs
mailing list