[PATCH] erofs-utils: mkfs: clear 'h_idata_size' when drop inline pcluster
zbestahu at gmail.com
zbestahu at gmail.com
Thu Aug 18 12:35:09 AEST 2022
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>
---
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