]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ocfs2: use correct endian in ocfs2_dinode_has_extents
authorJoseph Qi <joseph.qi@linux.alibaba.com>
Sat, 25 Oct 2025 12:32:17 +0000 (20:32 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Dec 2025 13:02:58 +0000 (14:02 +0100)
commitd7ea2b4d0b703207bf09c9a912530b2edfb67bf7
treec1d123a7f382b2fb8af40e41807bbfa862fa6409
parente5c52c320577cd405b251943ef77842dc6f303bf
ocfs2: use correct endian in ocfs2_dinode_has_extents

[ Upstream commit c9dff86eb78a4b6b02b1e407993c946ccaf9bfb4 ]

Fields in ocfs2_dinode is little endian, covert to host endian when
checking those contents.

Link: https://lkml.kernel.org/r/20251025123218.3997866-1-joseph.qi@linux.alibaba.com
Fixes: fdbb6cd96ed5 ("ocfs2: correct l_next_free_rec in online check")
Signed-off-by: Joseph Qi <joseph.qi@linux.alibaba.com>
Reviewed-by: Heming Zhao <heming.zhao@suse.com>
Cc: Mark Fasheh <mark@fasheh.com>
Cc: Joel Becker <jlbec@evilplan.org>
Cc: Junxiao Bi <junxiao.bi@oracle.com>
Cc: Changwei Ge <gechangwei@live.cn>
Cc: Jun Piao <piaojun@huawei.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/ocfs2/inode.c