Skip to content

Commit 0a11adf

Browse files
author
Kent Overstreet
committed
bcachefs: Fix an endianness conversion
cpu_to_le32(), not le32_to_cpu() - fixes a sparse complaint. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
1 parent 468035c commit 0a11adf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fs/bcachefs/snapshot.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -959,7 +959,7 @@ static int bch2_snapshot_node_delete(struct btree_trans *trans, u32 id)
959959
parent_id, id))
960960
goto err;
961961

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

964964
normalize_snapshot_child_pointers(&parent->v);
965965
}

0 commit comments

Comments
 (0)