diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-11-11 22:31:20 +0100 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-11-24 08:42:07 +0100 |
commit | 0a11adfb7aceb65831ff1c4d129d611e54fc3f57 (patch) | |
tree | 33e6d93f35ab1f2b7a695a14d0a8ad79f8b40c8d /fs/bcachefs | |
parent | bcachefs: Start gc, copygc, rebalance threads after initing writes ref (diff) | |
download | linux-0a11adfb7aceb65831ff1c4d129d611e54fc3f57.tar.xz linux-0a11adfb7aceb65831ff1c4d129d611e54fc3f57.zip |
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>
Diffstat (limited to 'fs/bcachefs')
-rw-r--r-- | fs/bcachefs/snapshot.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/snapshot.c b/fs/bcachefs/snapshot.c index e9af77b384c7..5dac038f0851 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); } |