From: Kent Overstreet Date: Sat, 11 Nov 2023 21:31:20 +0000 (-0500) Subject: bcachefs: Fix an endianness conversion X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=0a11adfb7aceb65831ff1c4d129d611e54fc3f57;p=linux.git bcachefs: Fix an endianness conversion cpu_to_le32(), not le32_to_cpu() - fixes a sparse complaint. Signed-off-by: Kent Overstreet --- diff --git a/fs/bcachefs/snapshot.c b/fs/bcachefs/snapshot.c index e9af77b384c76..5dac038f08519 100644 --- a/fs/bcachefs/snapshot.c +++ b/fs/bcachefs/snapshot.c @@ -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); }