Commit 0a11adfb authored by Kent Overstreet's avatar Kent Overstreet
Browse files

bcachefs: Fix an endianness conversion



cpu_to_le32(), not le32_to_cpu() - fixes a sparse complaint.

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 468035ca
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -959,7 +959,7 @@ static int bch2_snapshot_node_delete(struct btree_trans *trans, u32 id)
					parent_id, id))
			goto err;

		parent->v.children[i] = le32_to_cpu(child_id);
		parent->v.children[i] = cpu_to_le32(child_id);

		normalize_snapshot_child_pointers(&parent->v);
	}