Re: [PATCH v4 1/2] ocfs2: validate inline xattrs during inode block validation

From: Cen Zhang

Date: Wed Jun 24 2026 - 06:25:51 EST


Hi Joseph,

> Seems we can define a ocfs2_xattr_entry_type and pass in, then compute
> the size inside ocfs2_validate_xattr_entries().
> e.g.
>
> enum ocfs2_xattr_entry_type {
> OCFS2_XATTR_IBODY,
> OCFS2_XATTR_BLOCK,
> OCFS2_XATTR_BUCKET
> };
>
> And here 'where' is to identify inline xattr, xattr block or bucket.
> Commonly, blkno is already sufficient to uniquely identifies the corrupt
> block. So I'd rather drop it for simplification.

Thanks for your review and suggestion. I will rework this for v5.

Best regards,
Cen Zhang