]> 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)
committerAndrew Morton <akpm@linux-foundation.org>
Wed, 12 Nov 2025 18:00:16 +0000 (10:00 -0800)
commitc9dff86eb78a4b6b02b1e407993c946ccaf9bfb4
tree312deed41df0f55fe6332414f720cee7d4745351
parent390ac56cf0f687de53695648bc6f2259a7eae429
ocfs2: use correct endian in ocfs2_dinode_has_extents

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>
fs/ocfs2/inode.c