erofs-utils: allocate `struct erofs_inode` with zeroed memory
authorGao Xiang <hsiangkao@linux.alibaba.com>
Sat, 5 Apr 2025 13:39:36 +0000 (21:39 +0800)
committerGao Xiang <hsiangkao@linux.alibaba.com>
Sat, 5 Apr 2025 16:25:21 +0000 (00:25 +0800)
commitd8913513e4c5968442d1f335bf48d82ed3141fdc
tree14c6204c056ed7f781641dcfe0e0c1285206ac92
parentcf04b8b78f09aef6a7f0b77306db451332848c13
erofs-utils: allocate `struct erofs_inode` with zeroed memory

The kernel implementation has the same constraint, so the code can
be shared.

Fixes: 9fd2a2250fa9 ("erofs-utils: fuse: switch to FUSE 2/3 lowlevel APIs")
Fixes: f44043561491 ("erofs-utils: introduce fsck.erofs")
Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
Link: https://lore.kernel.org/r/20250405133937.2665477-1-hsiangkao@linux.alibaba.com
fsck/main.c
fuse/main.c