From: Yue Hu <[email protected]>

The value of 'h_idata_size' should be zero if no inline pcluster.

Signed-off-by: Yue Hu <[email protected]>
---
 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

Reply via email to