[lvc-project] [PATCH] ocfs2: add inline inode consistency check to ocfs2_validate_inode_block()
Dmitry Antipov
dmantipov at yandex.ru
Fri Oct 24 12:49:56 MSK 2025
On 10/24/25 12:10 PM, Joseph Qi wrote:
> Yes, if dinode with flag OCFS2_INLINE_DATA_FL set and also has clusters,
> something goes wrong, right?
Yes. Such an inode passes 'if (fe->i_clusters)' check in 'ocfs2_truncate_for_delete()'
and then goes to 'ocfs2_commit_truncate()'. And this function (mis)uses di->id2.i_list
member, which is actually di->id2.i_data if dinode data is inlined.
Dmitry
More information about the lvc-project
mailing list