Skip to contentSkip to conversation

ocfs2-convert-to-host-endian-in-ocfs2_validate_inode_block.patch removed from -mm tree

merged mm-nonmm-stable Andrew Morton 1 participant 1 message Nov 12, 2025

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: ocfs2: convert to host endian in ocfs2_validate_inode_block
has been removed from the -mm tree. Its filename was
ocfs2-convert-to-host-endian-in-ocfs2_validate_inode_block.patch

This patch was dropped because it was merged into the mm-nonmm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

------------------------------------------------------
From: Joseph Qi <[email protected]>
Subject: ocfs2: convert to host endian in ocfs2_validate_inode_block
Date: Sat, 25 Oct 2025 20:32:18 +0800

Convert to host endian when checking OCFS2_VALID_FL to keep consistent with other checks.

---

 fs/ocfs2/inode.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/ocfs2/inode.c renamed from fs/ocfs2/inode.c~ocfs2-convert-to-host-endian-in-ocfs2_validate_inode_block +1 -1
@@ -1481,7 +1481,7 @@ int ocfs2_validate_inode_block(struct su
 		goto bail;
 	}
 
-	if (!(di->i_flags & cpu_to_le32(OCFS2_VALID_FL))) {
+	if (!(le32_to_cpu(di->i_flags) & OCFS2_VALID_FL)) {
 		rc = ocfs2_error(sb,
 				 "Invalid dinode #%llu: OCFS2_VALID_FL not set\n",
 				 (unsigned long long)bh->b_blocknr);

_

Patches currently in -mm which might be from [email protected] are